mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
scsi: libfc: use error code for fc_rport_error()
We only ever use the 'fp' argument for fc_rport_error() to encapsulate the error code, so we can as well do away with that and pass the error directly. Signed-off-by: Hannes Reinecke <hare@suse.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
0f4c16a2f4
commit
9f9504a7cd
2 changed files with 66 additions and 40 deletions
|
@ -44,6 +44,11 @@
|
|||
#define FC_NO_ERR 0 /* no error */
|
||||
#define FC_EX_TIMEOUT 1 /* Exchange timeout */
|
||||
#define FC_EX_CLOSED 2 /* Exchange closed */
|
||||
#define FC_EX_ALLOC_ERR 3 /* Exchange allocation failed */
|
||||
#define FC_EX_XMIT_ERR 4 /* Exchange transmit failed */
|
||||
#define FC_EX_ELS_RJT 5 /* ELS rejected */
|
||||
#define FC_EX_INV_LOGIN 6 /* Login not completed */
|
||||
#define FC_EX_SEQ_ERR 6 /* Exchange sequence error */
|
||||
|
||||
/**
|
||||
* enum fc_lport_state - Local port states
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue