From: Nicholas Swenson Date: Thu, 24 Oct 2013 00:35:26 +0000 (-0700) Subject: bcache: Fix heap_peek() macro X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97d11a660fd906dbea3dccd2638495d8497c3c81;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 362c4b3f8b4a..1030c6020e98 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)