diff options
Diffstat (limited to 'drivers/scsi/libsas/sas_expander.c')
-rw-r--r-- | drivers/scsi/libsas/sas_expander.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c index 27674fe468f5..76555b1ddfd5 100644 --- a/drivers/scsi/libsas/sas_expander.c +++ b/drivers/scsi/libsas/sas_expander.c | |||
@@ -1896,11 +1896,9 @@ int sas_smp_handler(struct Scsi_Host *shost, struct sas_rphy *rphy, | |||
1896 | } | 1896 | } |
1897 | 1897 | ||
1898 | /* no rphy means no smp target support (ie aic94xx host) */ | 1898 | /* no rphy means no smp target support (ie aic94xx host) */ |
1899 | if (!rphy) { | 1899 | if (!rphy) |
1900 | printk("%s: can we send a smp request to a host?\n", | 1900 | return sas_smp_host_handler(shost, req, rsp); |
1901 | __FUNCTION__); | 1901 | |
1902 | return -EINVAL; | ||
1903 | } | ||
1904 | type = rphy->identify.device_type; | 1902 | type = rphy->identify.device_type; |
1905 | 1903 | ||
1906 | if (type != SAS_EDGE_EXPANDER_DEVICE && | 1904 | if (type != SAS_EDGE_EXPANDER_DEVICE && |