diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-07-11 16:02:46 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-07-28 04:53:19 +0200 |
commit | 5e32940621eb62064d98f42c9889db71b0368bde (patch) | |
tree | abe974ad3de494488653e7345f0e006ea1b01805 /drivers/nvdimm | |
parent | Linux 4.2-rc4 (diff) | |
download | linux-5e32940621eb62064d98f42c9889db71b0368bde.tar.xz linux-5e32940621eb62064d98f42c9889db71b0368bde.zip |
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')
-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); } |