diff options
author | Nicholas Swenson <nks@daterainc.com> | 2013-10-24 02:35:26 +0200 |
---|---|---|
committer | Kent Overstreet <kmo@daterainc.com> | 2013-12-16 23:22:57 +0100 |
commit | 97d11a660fd906dbea3dccd2638495d8497c3c81 (patch) | |
tree | 4395f2eac70b472cb14afd00f282ebf80681430a | |
parent | bcache: Fix for can_attach_cache() (diff) | |
download | linux-97d11a660fd906dbea3dccd2638495d8497c3c81.tar.xz linux-97d11a660fd906dbea3dccd2638495d8497c3c81.zip |
bcache: Fix heap_peek() macro
Signed-off-by: Nicholas Swenson <nks@daterainc.com>
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
-rw-r--r-- | drivers/md/bcache/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |