On 01/26/2017 12:36 AM, Bart Van Assche wrote: > This was detected by building with W=1. > > Signed-off-by: Bart Van Assche <bart.vanassche@xxxxxxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxxx> > Cc: Johannes Thumshirn <jth@xxxxxxxxxx> > --- > drivers/target/tcm_fc/tfc_cmd.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c > index 9af7842b8178..ec372860106f 100644 > --- a/drivers/target/tcm_fc/tfc_cmd.c > +++ b/drivers/target/tcm_fc/tfc_cmd.c > @@ -83,14 +83,12 @@ void ft_dump_cmd(struct ft_cmd *cmd, const char *caller) > static void ft_free_cmd(struct ft_cmd *cmd) > { > struct fc_frame *fp; > - struct fc_lport *lport; > struct ft_sess *sess; > > if (!cmd) > return; > sess = cmd->sess; > fp = cmd->req_frame; > - lport = fr_dev(fp); > if (fr_seq(fp)) > fc_seq_release(fr_seq(fp)); > fc_frame_free(fp); > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html