]> git.baikalelectronics.ru Git - kernel.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)
committerSage Weil <sage@inktank.com>
Mon, 1 Jul 2013 16:52:01 +0000 (09:52 -0700)
commit05bb36d5e9e752afaa7822fd8d654a643154b50f
treea8f071d554ad6024485af5e791012b9a0ea3fea6
parenteb6bee485a40207ec7a4296bc3fde51eb671dedc
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