projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99fec60
)
mtd: nand: omap2: fix compare_const_fl.cocci warnings
author
Julia Lawall
<
[email protected]
>
Thu, 14 Apr 2016 06:54:30 +0000
(08:54 +0200)
committer
Boris Brezillon
<
[email protected]
>
Thu, 5 May 2016 21:51:56 +0000
(23:51 +0200)
Move constants to the right of binary operators.
Generated by: scripts/coccinelle/misc/compare_const_fl.cocci
CC: Rafał Miłecki <
[email protected]
>
Signed-off-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Julia Lawall <
[email protected]
>
Signed-off-by: Boris Brezillon <
[email protected]
>
drivers/mtd/nand/omap2.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/omap2.c
b/drivers/mtd/nand/omap2.c
index 16da65baa4c79a4ef0d8271a3c4a844a0f3bdaff..141852fc64550666dad2af33d142a6119179151b 100644
(file)
--- 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 */