]> git.baikalelectronics.ru Git - kernel.git/commit
IB/usnic: Fix error return code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 10 Aug 2016 15:45:01 +0000 (17:45 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 22 Aug 2016 18:31:43 +0000 (14:31 -0400)
commit3337153b1b398c4180bbdd61b079a8430d2c26a9
tree607e3bceedbb6f5b6f11ca857d73cb0f725b1d7d
parenta2af569e25846f596f632bd8419bec9b611ba52f
IB/usnic: Fix error return code

If 'pci_register_driver' fails, we return 'err' which is known to be 0.
Return the error instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/usnic/usnic_ib_main.c