aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/osst.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-09-25 19:59:08 -0400
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-26 14:35:28 -0400
commit45223fd77c2b39d05dd7f1aaabf614abb1770bbe (patch)
treedd3f866f1d5c206a29d4aea31e687a2fe9bb1fd2 /drivers/scsi/osst.c
parent53aefd3fc31f08487f6941282ef6611413e02e43 (diff)
[SCSI] Signdness issue in drivers/scsi/osst.c
another signdness warning from gcc 4.1 drivers/scsi/osst.c:5154: warning: comparison of unsigned expression < 0 is always false The problem is that blk is defined as unsigned, but all usages of it are normal int cases. osst_get_frame_position() and osst_get_sector() return ints and can return negative values. If blk stays an unsigned int, the error check is useless. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/osst.c')
-rw-r--r--drivers/scsi/osst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/osst.c b/drivers/scsi/osst.c
index 4a2fed350d4e..9ecb323ebae8 100644
--- a/drivers/scsi/osst.c
+++ b/drivers/scsi/osst.c
@@ -4843,8 +4843,7 @@ static int os_scsi_tape_close(struct inode * inode, struct file * filp)
4843static int osst_ioctl(struct inode * inode,struct file * file, 4843static int osst_ioctl(struct inode * inode,struct file * file,
4844 unsigned int cmd_in, unsigned long arg) 4844 unsigned int cmd_in, unsigned long arg)
4845{ 4845{
4846 int i, cmd_nr, cmd_type, retval = 0; 4846 int i, cmd_nr, cmd_type, blk, retval = 0;
4847 unsigned int blk;
4848 struct st_modedef * STm; 4847 struct st_modedef * STm;
4849 struct st_partstat * STps; 4848 struct st_partstat * STps;
4850 struct osst_request * SRpnt = NULL; 4849 struct osst_request * SRpnt = NULL;