scsi: libfc: remove unnecessary assertion on ep variable
authorAditya Pakki <pakki001@umn.edu>
Tue, 17 Dec 2019 21:22:13 +0000 (15:22 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Dec 2019 03:08:55 +0000 (22:08 -0500)
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 <hare@suse.de>
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/tcm_fc/tfc_io.c

index 1354a15..6a38ff9 100644 (file)
@@ -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,