From: Aditya Pakki Date: Tue, 17 Dec 2019 21:22:13 +0000 (-0600) Subject: scsi: libfc: remove unnecessary assertion on ep variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=52b894393cecdc303990e834778d39b85d0553fc;p=linux.git scsi: libfc: remove unnecessary assertion on ep variable In ft_recv_write_data(), the pointer ep is dereferenced first and then asserts for NULL. The patch removes the unnecessary assertion. Link: https://lore.kernel.org/r/20191217212214.30722-1-pakki001@umn.edu Reviewed-by: Hannes Reinecke Signed-off-by: Aditya Pakki Signed-off-by: Martin K. Petersen --- diff --git a/drivers/target/tcm_fc/tfc_io.c b/drivers/target/tcm_fc/tfc_io.c index 1354a157e9afc..6a38ff936389b 100644 --- a/drivers/target/tcm_fc/tfc_io.c +++ b/drivers/target/tcm_fc/tfc_io.c @@ -221,7 +221,6 @@ void ft_recv_write_data(struct ft_cmd *cmd, struct fc_frame *fp) ep = fc_seq_exch(seq); lport = ep->lp; if (cmd->was_ddp_setup) { - BUG_ON(!ep); BUG_ON(!lport); /* * Since DDP (Large Rx offload) was setup for this request,