]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2fc: check IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Nov 2014 10:37:17 +0000 (13:37 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 11:05:25 +0000 (12:05 +0100)
commit810c150c88f41b5aeda679c373370825274b8a3d
tree44487cec9320c4ca04ab5689d2fe9c77a1a0ac5e
parente1e1d887ac74239264d931bcb45d09383ccd0a90
bnx2fc: check IS_ERR() instead of NULL

The bnx2fc_if_create() function returns NULL on failure, it never
returns an error pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c