]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
RDMA/nes: Remove redundant NULL check in nes_unregister_ofa_device()
authorRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:09 +0000 (21:01 -0700)
committerRoland Dreier <rolandd@cisco.com>
Thu, 17 Apr 2008 04:01:09 +0000 (21:01 -0700)
commit5bd8341ce2bb5ef575b3501a8c13f22ae9f0b2ad
treead0c12081def59e22acf9aaccc1a70284ecf7444
parenta7dab9e887ce37391f004ffd6ce0ffed7272fd69
RDMA/nes: Remove redundant NULL check in nes_unregister_ofa_device()

nes_unregister_ofa_device() dereferences the nesibdev pointer before
testing if it's NULL.  Also, the test is doubly redundant because the
only caller of nes_unregister_ofa_device() is nes_destroy_ofa_device(),
which already tests if nesibdev is NULL.  Remove the unnecessary test.

This was spotted by the Coverity checker (CID 2190).

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_verbs.c