]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fcoe: fcoe->realdev is always set
authorHannes Reinecke <hare@suse.de>
Mon, 4 Jul 2016 08:29:20 +0000 (10:29 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 14 Jul 2016 02:06:10 +0000 (22:06 -0400)
'->realdev' is always set, so this check is pointless.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c

index 9c3742d52ca4142b97ec9882e0e0cfbcf4e48a0b..41c67e5ce5b997b3a073875b65ecd7ae23daba4b 100644 (file)
@@ -770,9 +770,6 @@ static void fcoe_fdmi_info(struct fc_lport *lport, struct net_device *netdev)
        fcoe = port->priv;
        realdev = fcoe->realdev;
 
-       if (!realdev)
-               return;
-
        /* No FDMI state m/c for NPIV ports */
        if (lport->vport)
                return;