]> 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>
Mon, 7 Nov 2011 02:40:25 +0000 (13:40 +1100)
commitcce4c1ac2528588899530b011b17c812fba547da
treed411f9ae554e5a23bc3c622d53547574dbadfec0
parentb28ada0030163ad79e64b31b6785675ff618bd8e
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