Commit 9f9504a7 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Martin K. Petersen

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: default avatarHannes Reinecke <hare@suse.com>
Acked-by: default avatarJohannes Thumshirn <jth@kernel.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0f4c16a2
This diff is collapsed.
...@@ -44,6 +44,11 @@ ...@@ -44,6 +44,11 @@
#define FC_NO_ERR 0 /* no error */ #define FC_NO_ERR 0 /* no error */
#define FC_EX_TIMEOUT 1 /* Exchange timeout */ #define FC_EX_TIMEOUT 1 /* Exchange timeout */
#define FC_EX_CLOSED 2 /* Exchange closed */ #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 * enum fc_lport_state - Local port states
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment