Skip to content
Commit 491205a8 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Sage Weil
Browse files

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: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: default avatarAlex Elder <elder@inktank.com>
parent 8bb495e3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment