From 4a52c21706b96a4e9219f26374460db89686cb06 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 1 Nov 2018 04:22:54 +0000 Subject: [PATCH] fcst: Suppress a set-but-not-used variable warning git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7558 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- fcst/ft_cmd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }