char/sx: replace direct
Subsystems (2)
PATCH 27/33 char/sx: replace direct
Any comments would be appreciated.
Description: Use set_current_state() instead of direct assignment of current->state.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/char/sx.c +1 -1
@@ -1502,7 +1502,7 @@ static void sx_close (void *ptr)sx_send_command (port,HS_CLOSE ,0 ,0 );while (to-- && (sx_read_channel_byte (port, hi_hstat) !=HS_IDLE_CLOSED )) { - current->state =TASK_INTERRUPTIBLE ; +set_current_state (TASK_INTERRUPTIBLE );schedule_timeout (1 );if (signal_pending (current))break ;
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors