summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/omap2.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-04-14 08:54:30 +0200
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-05-05 23:51:56 +0200
commit57a605b101bbdff6a388e8dcb4853db9ffe947f7 (patch)
tree154bcffc454bcb1d2a50302806538df6cb016565 /drivers/mtd/nand/omap2.c
parent99fec60aad7a5520effbaadd3bbbe8001e9242eb (diff)
downloadlinux-57a605b101bbdff6a388e8dcb4853db9ffe947f7.tar.gz
linux-57a605b101bbdff6a388e8dcb4853db9ffe947f7.tar.bz2
linux-57a605b101bbdff6a388e8dcb4853db9ffe947f7.zip
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@gmail.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/omap2.c')
-rw-r--r--drivers/mtd/nand/omap2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 16da65baa4c7..141852fc6455 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 */