diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2010-09-10 20:07:38 +0200 |
---|---|---|
committer | Jens Axboe <axboe@carl.home.kernel.dk> | 2010-09-10 20:07:38 +0200 |
commit | c8bf1336824ebd698d37b71763e1c43190f2229a (patch) | |
tree | 19948b3c686ba71bb2e85883a5325cec069015b7 /block/blk-settings.c | |
parent | Linux 2.6.36-rc2 (diff) | |
download | linux-c8bf1336824ebd698d37b71763e1c43190f2229a.tar.xz linux-c8bf1336824ebd698d37b71763e1c43190f2229a.zip |
Consolidate min_not_zero
We have several users of min_not_zero, each of them using their own
definition. Move the define to kernel.h.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index a234f4bf1d6f..8d592b559bd3 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -455,11 +455,6 @@ void blk_queue_io_opt(struct request_queue *q, unsigned int opt) } EXPORT_SYMBOL(blk_queue_io_opt); -/* - * Returns the minimum that is _not_ zero, unless both are zero. - */ -#define min_not_zero(l, r) (l == 0) ? r : ((r == 0) ? l : min(l, r)) - /** * blk_queue_stack_limits - inherit underlying queue limits for stacked drivers * @t: the stacking driver (top) |