* [PATCH] mtd: mxc_nand: Remove bit-or operation with zero
@ 2015-11-17 15:58 Fabio Estevam
2015-11-17 18:43 ` Brian Norris
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2015-11-17 15:58 UTC (permalink / raw)
To: computersforpeace; +Cc: linux-mtd, Fabio Estevam
Doing a bit-or operation with zero is pointless.
Remove this unneeded bit-or.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/mtd/nand/mxc_nand.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 7922d31..f507d36 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1067,8 +1067,7 @@ static void preset_v3(struct mtd_info *mtd)
/* Blocks to be unlocked */
for (i = 0; i < NAND_MAX_CHIPS; i++)
- writel(0x0 | (0xffff << 16),
- NFC_V3_WRPROT_UNLOCK_BLK_ADD0 + (i << 2));
+ writel(0xffff << 16, NFC_V3_WRPROT_UNLOCK_BLK_ADD0 + (i << 2));
writel(0, NFC_V3_IPC);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Remove bit-or operation with zero
2015-11-17 15:58 [PATCH] mtd: mxc_nand: Remove bit-or operation with zero Fabio Estevam
@ 2015-11-17 18:43 ` Brian Norris
0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2015-11-17 18:43 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linux-mtd
On Tue, Nov 17, 2015 at 01:58:50PM -0200, Fabio Estevam wrote:
> Doing a bit-or operation with zero is pointless.
>
> Remove this unneeded bit-or.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Applied to l2-mtd.git
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-11-17 18:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 15:58 [PATCH] mtd: mxc_nand: Remove bit-or operation with zero Fabio Estevam
2015-11-17 18:43 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).