]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
mtd: nand: silence some shift wrap warnings
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 9 Aug 2013 09:49:05 +0000 (12:49 +0300)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:36:35 +0000 (21:36 +0100)
commitdaae74cad4bcd4566fcb82477e33c42bcdaa86e8
treec17ee5583fc73f58b93fc4b918742bc38102e0d3
parent7a96541a8e9fe720bec3900679ca514fefd2d516
mtd: nand: silence some shift wrap warnings

There are static checkers which complain when we declare variables as
64 bit bitfields but only use the lower 32 bits because of shift
wrapping.  In this case "len" is declared as u64 as opposed to unsigned
long or something which might be 32 bits.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c