diff --git a/fcst/ft_cmd.c b/fcst/ft_cmd.c index ed0d018c5..7ff31b48d 100644 --- a/fcst/ft_cmd.c +++ b/fcst/ft_cmd.c @@ -862,15 +862,13 @@ static void ft_cmd_ls_rjt(struct fc_frame *rx_fp, enum fc_els_rjt_reason reason, lport->tt.seq_send(lport, sp, fp); #else struct fc_seq_els_data rjt_data; - struct fc_lport *lport; - lport = fr_dev(rx_fp); rjt_data.reason = reason; rjt_data.explan = explan; #ifdef NEW_LIBFC_API fc_seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); #else - lport->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); + fr_dev(rx_fp)->tt.seq_els_rsp_send(rx_fp, ELS_LS_RJT, &rjt_data); #endif #endif }