From: Nicholas Swenson Date: Thu, 24 Oct 2013 00:35:26 +0000 (-0700) Subject: bcache: Fix heap_peek() macro X-Git-Tag: v3.13-rc6~5^2~8^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=97d11a660fd906dbea3dccd2638495d8497c3c81;p=kernel%2Fkernel-generic.git bcache: Fix heap_peek() macro Signed-off-by: Nicholas Swenson Signed-off-by: Kent Overstreet --- diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h index 362c4b3..1030c60 100644 --- a/drivers/md/bcache/util.h +++ b/drivers/md/bcache/util.h @@ -110,7 +110,7 @@ do { \ _r; \ }) -#define heap_peek(h) ((h)->size ? (h)->data[0] : NULL) +#define heap_peek(h) ((h)->used ? (h)->data[0] : NULL) #define heap_full(h) ((h)->used == (h)->size)