]> 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)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 15:46:15 +0000 (08:46 -0700)
commited9e1c4dfcc71f70f53d78b388697d6f7e6e1329
tree8f3d6e87b564c64e83556c36c3d885a13624386f
parent3a96d5cd7bdce45d5dded75c3a62d4fb98050280
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