diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2015-11-17 13:58:50 -0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-11-17 10:42:42 -0800 |
commit | 1b15b1f5a01019524815a9ce5c575f3b2068e7f8 (patch) | |
tree | 7b377d99119e8a4b183a98b067bf8a6cca86ac15 | |
parent | 20625dfe0384676e3ee244091c4f09544d080798 (diff) | |
download | blackbird-obmc-linux-1b15b1f5a01019524815a9ce5c575f3b2068e7f8.tar.gz blackbird-obmc-linux-1b15b1f5a01019524815a9ce5c575f3b2068e7f8.zip |
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@freescale.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r-- | drivers/mtd/nand/mxc_nand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c index 7922d318ebb8..f507d361b1a6 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); |