projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
watchdog: hpwdt (12/12): Make NMI decoding a compile-time option
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
scsi
/
osst.c
diff --git
a/drivers/scsi/osst.c
b/drivers/scsi/osst.c
index d64b7178fa088a3eb24453affaa6e5782037d195..278b352ae78d0bdc6d5609f7d62bfc9893111a00 100644
(file)
--- a/
drivers/scsi/osst.c
+++ b/
drivers/scsi/osst.c
@@
-5868,7
+5868,8
@@
static int osst_probe(struct device *dev)
}
/* find a free minor number */
- for (i=0; os_scsi_tapes[i] && i<osst_max_dev; i++);
+ for (i = 0; i < osst_max_dev && os_scsi_tapes[i]; i++)
+ ;
if(i >= osst_max_dev) panic ("Scsi_devices corrupt (osst)");
dev_num = i;