提交 6e2037b0 编写于 作者: A Andrew Morton 提交者: James Bottomley

[SCSI] osst: fix warning

drivers/scsi/osst.c: In function '__os_scsi_tape_open':
drivers/scsi/osst.c:4705: warning: ISO C90 forbids mixed declarations and code
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NJames Bottomley <jbottomley@parallels.com>
上级 a061f57d
...@@ -4698,11 +4698,12 @@ static int __os_scsi_tape_open(struct inode * inode, struct file * filp) ...@@ -4698,11 +4698,12 @@ static int __os_scsi_tape_open(struct inode * inode, struct file * filp)
break; break;
if ((SRpnt->sense[2] & 0x0f) == UNIT_ATTENTION) { if ((SRpnt->sense[2] & 0x0f) == UNIT_ATTENTION) {
int j;
STp->pos_unknown = 0; STp->pos_unknown = 0;
STp->partition = STp->new_partition = 0; STp->partition = STp->new_partition = 0;
if (STp->can_partitions) if (STp->can_partitions)
STp->nbr_partitions = 1; /* This guess will be updated later if necessary */ STp->nbr_partitions = 1; /* This guess will be updated later if necessary */
int j;
for (j = 0; j < ST_NBR_PARTITIONS; j++) { for (j = 0; j < ST_NBR_PARTITIONS; j++) {
STps = &(STp->ps[j]); STps = &(STp->ps[j]);
STps->rw = ST_IDLE; STps->rw = ST_IDLE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册