diff options
Diffstat (limited to 'include/scsi/fc_encode.h')
-rw-r--r-- | include/scsi/fc_encode.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/scsi/fc_encode.h b/include/scsi/fc_encode.h index a0ff61c3e935..3ede1abad4b7 100644 --- a/include/scsi/fc_encode.h +++ b/include/scsi/fc_encode.h | |||
@@ -249,10 +249,13 @@ static inline void fc_scr_fill(struct fc_lport *lport, struct fc_frame *fp) | |||
249 | /** | 249 | /** |
250 | * fc_els_fill - Fill in an ELS request frame | 250 | * fc_els_fill - Fill in an ELS request frame |
251 | */ | 251 | */ |
252 | static inline int fc_els_fill(struct fc_lport *lport, struct fc_rport *rport, | 252 | static inline int fc_els_fill(struct fc_lport *lport, |
253 | struct fc_rport_priv *rdata, | ||
253 | struct fc_frame *fp, unsigned int op, | 254 | struct fc_frame *fp, unsigned int op, |
254 | enum fc_rctl *r_ctl, u32 *did, enum fc_fh_type *fh_type) | 255 | enum fc_rctl *r_ctl, u32 *did, enum fc_fh_type *fh_type) |
255 | { | 256 | { |
257 | struct fc_rport *rport = PRIV_TO_RPORT(rdata); | ||
258 | |||
256 | switch (op) { | 259 | switch (op) { |
257 | case ELS_PLOGI: | 260 | case ELS_PLOGI: |
258 | fc_plogi_fill(lport, fp, ELS_PLOGI); | 261 | fc_plogi_fill(lport, fp, ELS_PLOGI); |
@@ -272,7 +275,7 @@ static inline int fc_els_fill(struct fc_lport *lport, struct fc_rport *rport, | |||
272 | * is port logo, therefore | 275 | * is port logo, therefore |
273 | * set did to rport id. | 276 | * set did to rport id. |
274 | */ | 277 | */ |
275 | if (rport) | 278 | if (rdata) |
276 | *did = rport->port_id; | 279 | *did = rport->port_id; |
277 | break; | 280 | break; |
278 | 281 | ||