From: Hannes Reinecke Date: Mon, 4 Jul 2016 08:29:20 +0000 (+0200) Subject: fcoe: fcoe->realdev is always set X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb44c4e2fea0dacad615d42488bfd0a9053c9e9f;p=linux-beck.git fcoe: fcoe->realdev is always set '->realdev' is always set, so this check is pointless. Signed-off-by: Hannes Reinecke Acked-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 9c3742d52ca4..41c67e5ce5b9 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -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;