]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2fc: fix an error code in _bnx2fc_create()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 4 Nov 2014 10:37:59 +0000 (13:37 +0300)
committerChristoph Hellwig <hch@lst.de>
Wed, 12 Nov 2014 11:05:25 +0000 (12:05 +0100)
commit3a1a3ee9ebaec11549f3779aa5d198f35f788ac1
treedd002751bf8eede06c771f4fe32bb560d0d5dedc
parent810c150c88f41b5aeda679c373370825274b8a3d
bnx2fc: fix an error code in _bnx2fc_create()

We should be returning an error code here instead of success.  Either
-ENODEV or -ENOMEM would work.  There is also a failure message in
printk().

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