aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 56cb49006116..ad87d73f88ee 100644
--- a/drivers/scsi/st.c
+++ b/drivers/scsi/st.c
@@ -3839,7 +3839,7 @@ static int __init st_setup(char *str)
3839 break; 3839 break;
3840 } 3840 }
3841 } 3841 }
3842 if (i >= sizeof(parms) / sizeof(struct st_dev_parm)) 3842 if (i >= ARRAY_SIZE(parms))
3843 printk(KERN_WARNING "st: invalid parameter in '%s'\n", 3843 printk(KERN_WARNING "st: invalid parameter in '%s'\n",
3844 stp); 3844 stp);
3845 stp = strchr(stp, ','); 3845 stp = strchr(stp, ',');