[SCSI] qla2xxx: Return sysfs error codes appropriate to conditions.
authorJoe Carnuccio <joe.carnuccio@qlogic.com>
Tue, 16 Aug 2011 18:31:53 +0000 (11:31 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 29 Aug 2011 07:14:57 +0000 (00:14 -0700)
commitb668ae37f10e5cefe65303150867e3fa2e631b93
tree7e62ac2c6c50287c0ccdc470e2301f8cfde9d3bc
parent697a4bc69159c3396035b0506ffa55c4b2d0b1f4
[SCSI] qla2xxx: Return sysfs error codes appropriate to conditions.

Return sysfs error codes that match the conditions encountered.
This prevents sysfs from retrying a request which is conditioned
to fail under the current circumstance.

Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla2xxx/qla_attr.c