-
Nishanth Aravamudan authored
This patch cleans up the wait queue usage in this driver. The state is no longer set until just before the task sleeps, which removes a few set_current_state()s. Correspondingly, the state doesn't need to be set back to TASK_RUNNING outside of the while-loops, as schedule_timeout() takes care of it. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
6b2d5150