mtd: nand: omap2: fix compare_const_fl.cocci warnings
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon May 23 21:59:21 PDT 2016
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=57a605b101bbdff6a388e8dcb4853db9ffe947f7
Commit: 57a605b101bbdff6a388e8dcb4853db9ffe947f7
Parent: 99fec60aad7a5520effbaadd3bbbe8001e9242eb
Author: Julia Lawall <julia.lawall at lip6.fr>
AuthorDate: Thu Apr 14 08:54:30 2016 +0200
Committer: Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Thu May 5 23:51:56 2016 +0200
mtd: nand: omap2: fix compare_const_fl.cocci warnings
Move constants to the right of binary operators.
Generated by: scripts/coccinelle/misc/compare_const_fl.cocci
CC: Rafał Miłecki <zajec5 at gmail.com>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
Signed-off-by: Julia Lawall <julia.lawall at lip6.fr>
Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
drivers/mtd/nand/omap2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 16da65b..141852f 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd/nand/omap2.c
@@ -216,7 +216,7 @@ static int omap_prefetch_enable(int cs, int fifo_th, int dma_mode,
*/
val = ((cs << PREFETCH_CONFIG1_CS_SHIFT) |
PREFETCH_FIFOTHRESHOLD(fifo_th) | ENABLE_PREFETCH |
- (dma_mode << DMA_MPU_MODE_SHIFT) | (0x1 & is_write));
+ (dma_mode << DMA_MPU_MODE_SHIFT) | (is_write & 0x1));
writel(val, info->reg.gpmc_prefetch_config1);
/* Start the prefetch engine */
More information about the linux-mtd-cvs
mailing list