]> 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>
Wed, 9 Nov 2011 02:10:14 +0000 (13:10 +1100)
commit30105a57b903e28dbf573c7c16bb917f240818fe
tree03d8c1f34d7a29592820a327eabdeb3636626c61
parent91e9a43d5b992483d87bd27cd86bba4b4ca60138
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