mtd: mxc_nand: Remove bit-or operation with zero

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jan 12 15:59:06 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=1b15b1f5a01019524815a9ce5c575f3b2068e7f8
Commit:     1b15b1f5a01019524815a9ce5c575f3b2068e7f8
Parent:     20625dfe0384676e3ee244091c4f09544d080798
Author:     Fabio Estevam <fabio.estevam at freescale.com>
AuthorDate: Tue Nov 17 13:58:50 2015 -0200
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Nov 17 10:42:42 2015 -0800

    mtd: mxc_nand: Remove bit-or operation with zero
    
    Doing a bit-or operation with zero is pointless.
    
    Remove this unneeded bit-or.
    
    Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
    Signed-off-by: Brian Norris <computersforpeace at gmail.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);
 



More information about the linux-mtd-cvs mailing list