]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: lpfc: Fix lpfc_wwn_set return code check
authorJames Smart <jsmart2021@gmail.com>
Tue, 17 Jan 2017 20:31:56 +0000 (12:31 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Jan 2017 23:53:21 +0000 (18:53 -0500)
commite2934ed183b94cff7626a517877ecc9bbe82cdc8
tree9f55c6105296b4aba5f73e18af5a8deabf24c725
parentf2a3313d65f0bf6d3fefe8fa40e0208fe003e59e
scsi: lpfc: Fix lpfc_wwn_set return code check

When I reversed the patch to re-add the lpfc_soft_wwn parameter feature,
it re-added code that had a long-standing bug. (that's what I get I
guess :)

As Dan Carpenter pointed out - error checks looked at wrong polarity.  0
is success, -errno is failure. Updated checks.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c