aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/qla2xxx/qla_attr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_attr.c b/drivers/scsi/qla2xxx/qla_attr.c
index f8fd482a06e0..41734efe4bf9 100644
--- a/drivers/scsi/qla2xxx/qla_attr.c
+++ b/drivers/scsi/qla2xxx/qla_attr.c
@@ -1652,6 +1652,8 @@ qla2x00_port_speed_store(struct device *dev, struct device_attribute *attr,
1652 } 1652 }
1653 1653
1654 rval = kstrtol(buf, 10, &type); 1654 rval = kstrtol(buf, 10, &type);
1655 if (rval)
1656 return rval;
1655 speed = type; 1657 speed = type;
1656 if (type == 40 || type == 80 || type == 160 || 1658 if (type == 40 || type == 80 || type == 160 ||
1657 type == 320) { 1659 type == 320) {