[SCSI] bfa: set correct command return code
authorHannes Reinecke <hare@suse.de>
Tue, 14 Jan 2014 09:26:25 +0000 (10:26 +0100)
committerJames Bottomley <JBottomley@Parallels.com>
Sat, 15 Mar 2014 17:19:17 +0000 (10:19 -0700)
commitc60b7b121da1db780197914b45b6ed6f63c52ac5
tree08b2db51819bdbd5be42dac0304a621633585b99
parent10ca149c4add37f104200e33271d826460f8964b
[SCSI] bfa: set correct command return code

For various error conditions the bfa driver just returns
'DID_ERROR', which carries no information at all about the
actual source of error.
This patch updates the error handling to return a correct
error code, depending on the type of error occurred.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/bfa/bfad_im.c