diff options
author | Dan Carpenter | 2014-11-04 11:37:59 +0100 |
---|---|---|
committer | Christoph Hellwig | 2014-11-12 12:05:25 +0100 |
commit | 2043e1fd09c1896bb03a6e25b64baa84a30879c9 (patch) | |
tree | dd002751bf8eede06c771f4fe32bb560d0d5dedc /drivers/scsi/fnic/fnic_main.c | |
parent | bnx2fc: check IS_ERR() instead of NULL (diff) | |
download | kernel-qcow2-linux-2043e1fd09c1896bb03a6e25b64baa84a30879c9.tar.gz kernel-qcow2-linux-2043e1fd09c1896bb03a6e25b64baa84a30879c9.tar.xz kernel-qcow2-linux-2043e1fd09c1896bb03a6e25b64baa84a30879c9.zip |
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>
Diffstat (limited to 'drivers/scsi/fnic/fnic_main.c')
0 files changed, 0 insertions, 0 deletions