]> nv-tegra.nvidia Code Review - linux-2.6.git/commitdiff
[SCSI] mptsas: remove unneeded check
authorAlan Cox <alan@redhat.com>
Wed, 1 Apr 2009 14:00:29 +0000 (15:00 +0100)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Apr 2009 14:23:10 +0000 (09:23 -0500)
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Eric Moore <eric.moore@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/message/fusion/mptsas.c

index 12b732512e579049fe0152e1a570dd3594b8ad15..a9019f081b971b888464166c407a4c8aabb9da30 100644 (file)
@@ -2279,9 +2279,8 @@ mptsas_delete_expander_phys(MPT_ADAPTER *ioc)
        mutex_lock(&ioc->sas_topology_mutex);
        list_for_each_entry_safe(port_info, n, &ioc->sas_topology, list) {
 
-               if (port_info->phy_info &&
-                   (!(port_info->phy_info[0].identify.device_info &
-                   MPI_SAS_DEVICE_INFO_SMP_TARGET)))
+               if (!(port_info->phy_info[0].identify.device_info &
+                   MPI_SAS_DEVICE_INFO_SMP_TARGET))
                        continue;
 
                if (mptsas_sas_expander_pg0(ioc, &buffer,