Linus Torvalds d3ea547853 rdma: fix buggy code that the compiler warns about
Get rid of this warning:

  drivers/infiniband/sw/rdmavt/cq.c: In function ‘rvt_cq_exit’:
  drivers/infiniband/sw/rdmavt/cq.c:542:2: warning: ‘worker’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    kthread_destroy_worker(worker);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

by fixing the function to actually work.

Fixes: 6efaf10f163d ("IB/rdmavt: Avoid queuing work into a destroyed cq kthread worker")
Cc: Petr Mladek <pmladek@suse.com>
Cc: Doug Ledford <dledford@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-12-15 12:18:42 -08:00
..
2016-12-14 11:22:26 -08:00
2016-12-13 11:42:18 -08:00
2016-12-14 10:49:33 -08:00
2016-12-14 20:42:45 -08:00
2016-12-14 11:14:28 -08:00
2016-12-13 16:39:21 -08:00
2016-12-14 10:49:33 -08:00
2016-12-14 10:55:56 -08:00
2016-12-15 12:03:32 -08:00
2016-12-15 12:03:32 -08:00
2016-12-15 11:49:41 -08:00
2016-12-14 10:49:33 -08:00
2016-12-15 11:45:13 -08:00
2016-12-14 11:14:28 -08:00
2016-12-13 08:52:45 -08:00
2016-12-14 10:49:33 -08:00
2016-12-14 20:42:45 -08:00
2016-12-14 10:49:33 -08:00
2016-12-14 20:42:45 -08:00