aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_transport_sas.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_transport_sas.c')
-rw-r--r--drivers/scsi/scsi_transport_sas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_transport_sas.c b/drivers/scsi/scsi_transport_sas.c
index 63445f90097e..f5618c1116f4 100644
--- a/drivers/scsi/scsi_transport_sas.c
+++ b/drivers/scsi/scsi_transport_sas.c
@@ -266,6 +266,9 @@ show_sas_phy_##field(struct class_device *cdev, char *buf) \
266 struct sas_internal *i = to_sas_internal(shost->transportt); \ 266 struct sas_internal *i = to_sas_internal(shost->transportt); \
267 int error; \ 267 int error; \
268 \ 268 \
269 if (!phy->local_attached) \
270 return -EINVAL; \
271 \
269 error = i->f->get_linkerrors(phy); \ 272 error = i->f->get_linkerrors(phy); \
270 if (error) \ 273 if (error) \
271 return error; \ 274 return error; \