From d58069adc6f59f48bf96a72e6df68a670ff1b3bc Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 1 Apr 2009 15:00:29 +0100 Subject: [SCSI] mptsas: remove unneeded check Signed-off-by: Alan Cox Cc: Eric Moore Signed-off-by: James Bottomley --- drivers/message/fusion/mptsas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/message') diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 12b732512e5..a9019f081b9 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -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, -- cgit v1.2.3