]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bio: change some signed vars to unsigned
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 24 Oct 2011 14:53:54 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 25 Oct 2011 09:07:32 +0000 (20:07 +1100)
commitc373b176f70e5ffd81129c4bd95202b63edfd7bf
tree5ec41609bef43e69bb7e948eaadfe0f05af487f9
parent1c8cf179ef02cec136a04b972785cb3b27890b95
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