bvec: avoid variable shadowing warning
authorJohannes Berg <johannes.berg@intel.com>
Thu, 11 Aug 2016 08:15:56 +0000 (10:15 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 11 Aug 2016 15:41:35 +0000 (09:41 -0600)
commit1ea049b2de5d803374fdbf43add23c8d1c518e7b
tree9888036b25bbd628e9fcb5c76f0207c27d1e623a
parent005411ea7ee776a56b1e0120a31c65efdee5cab1
bvec: avoid variable shadowing warning

Due to the (indirect) nesting of min(..., min(...)), sparse will
show a variable shadowing warning whenever bvec.h is included.

Avoid that by assigning the inner min() to a temporary variable first.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/bvec.h