]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: Use min_t() to fix comparison of distinct pointer types warning
authorGeert Uytterhoeven <geert@linux-m68k.org>
Tue, 14 May 2013 01:35:37 +0000 (20:35 -0500)
committerAlex Elder <elder@inktank.com>
Fri, 17 May 2013 17:50:46 +0000 (12:50 -0500)
commitc1ece90edeb7afd667e24c2845bf0d9b0ac622a0
treee3b725c45cc04006e6aa28b848cef0625fa61d35
parent3abef3b3585bbc67d56fdc9c67761a900fb4b69d
rbd: Use min_t() to fix comparison of distinct pointer types warning

drivers/block/rbd.c: In function ‘zero_pages’:
drivers/block/rbd.c:1102: warning: comparison of distinct pointer types lacks a cast

Remove the hackish casts and use min_t() to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Alex Elder <elder@inktank.com>
drivers/block/rbd.c