diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-07-11 10:02:46 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-07-27 22:53:19 -0400 |
commit | 5e32940621eb62064d98f42c9889db71b0368bde (patch) | |
tree | abe974ad3de494488653e7345f0e006ea1b01805 /drivers/nvdimm/btt.c | |
parent | cbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f (diff) |
libnvdimm, btt: sparse fix
Fix:
drivers/nvdimm/btt.c:635:29: warning: restricted __le64 degrades to integer
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/btt.c')
-rw-r--r-- | drivers/nvdimm/btt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c index 411c7b2bb37a..552f1c4f4dc6 100644 --- a/drivers/nvdimm/btt.c +++ b/drivers/nvdimm/btt.c @@ -632,8 +632,9 @@ static void parse_arena_meta(struct arena_info *arena, struct btt_sb *super, arena->logoff = arena_off + le64_to_cpu(super->logoff); arena->info2off = arena_off + le64_to_cpu(super->info2off); - arena->size = (super->nextoff > 0) ? (le64_to_cpu(super->nextoff)) : - (arena->info2off - arena->infooff + BTT_PG_SIZE); + arena->size = (le64_to_cpu(super->nextoff) > 0) + ? (le64_to_cpu(super->nextoff)) + : (arena->info2off - arena->infooff + BTT_PG_SIZE); arena->flags = le32_to_cpu(super->flags); } |