From: Roland Dreier Date: Thu, 17 Apr 2008 04:01:09 +0000 (-0700) Subject: RDMA/nes: Remove redundant NULL check in nes_unregister_ofa_device() X-Git-Tag: v2.6.26-rc1~1156^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bd8341ce2bb5ef575b3501a8c13f22ae9f0b2ad;p=pandora-kernel.git 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 --- Reading git-diff-tree failed