]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: NULL arg to sc_return_credits is OK
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 23 Jul 2016 06:30:52 +0000 (08:30 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 4 Aug 2016 01:03:35 +0000 (21:03 -0400)
commitfaf26301fcb244a623375c7c84d3def0b7a4e6d0
tree0846fd4c9261b5970feec7e3df8c2e23a056c87e
parentf344107e9617551ef52d531e1f76520d8a550a17
IB/hfi1: NULL arg to sc_return_credits is OK

The sc_return_credits() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/file_ops.c