]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bio: change some signed vars to unsigned
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Nov 2011 00:20:08 +0000 (11:20 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 14 Nov 2011 02:58:35 +0000 (13:58 +1100)
commit59a7d9144232a5f577d21195989c0bc2b3c56701
tree07ed78195b35e2eb9d687639bd7947df340fca28
parent31f5085980c7d9dd469800b89024d2fdcfc6288e
bio: change some signed vars to unsigned

This is just a cleanup patch to silence a static checker warning.

The problem is that we cap "nr_iovecs" so it can't be larger than
"UIO_MAXIOV" but we don't check for negative values.  It turns out this is
prevented at other layers, but logically it doesn't make sense to have
negative nr_iovecs so making it unsigned is nicer.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/bio.c
include/linux/bio.h