set_current_state cleanup in drivers/serial/mcfserial.c
PATCH 1/1 set_current_state cleanup in drivers/serial/mcfserial.c
From: Jestin Stoffel <[email protected]>
Replaced a couple current->state= with set_current_state
Signed-of-by Jestin Stoffel <[email protected]>
---
drivers/serial/mcfserial.c renamed from drivers/serial/mcfserial.c.orig +2 -2
@@ -1399,7 +1399,7 @@ static int block_til_ready(struct tty_stlocal_irq_disable ();mcfrs_setsignals (info,1 ,1 );local_irq_enable (); - current->state =TASK_INTERRUPTIBLE ; +set_current_state (TASK_INTERRUPTIBLE );if (tty_hung_up_p (filp) || !(info->flags &ASYNC_INITIALIZED )) {#ifdef SERIAL_DO_RESTART
@@ -1425,7 +1425,7 @@ static int block_til_ready(struct tty_st#endif schedule (); } - current->state =TASK_RUNNING ; +set_current_state (TASK_RUNNING );remove_wait_queue (&info->open_wait, &wait);if (!tty_hung_up_p (filp)) info->count++;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors