libchip/ata: Remove dead code
bsps: Use rtems_task_self()
rtems: Delete unused functions
posix: Delete unused functions