All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] mtd: hisilicon: && vs & typo
@ 2015-02-11 10:25 ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2015-02-11 10:25 UTC (permalink / raw)
  To: David Woodhouse; +Cc: kernel-janitors, Zhou Wang, Brian Norris, linux-mtd

The intent was to mask away some bits here, not to test true or false.

Fix: 54f531f6e332 ('mtd: hisilicon: add a new NAND controller driver for hisilicon hip04 Soc')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/mtd/nand/hisi504_nand.c b/drivers/mtd/nand/hisi504_nand.c
index 484e1db..289ad3a 100644
--- a/drivers/mtd/nand/hisi504_nand.c
+++ b/drivers/mtd/nand/hisi504_nand.c
@@ -495,7 +495,7 @@ static void hisi_nfc_cmdfunc(struct mtd_info *mtd, unsigned command, int column,
 		flag = hinfc_read(host, HINFC504_CON);
 		if (chip->ecc.mode = NAND_ECC_HW)
 			hinfc_write(host,
-				    flag && ~(HINFC504_CON_ECCTYPE_MASK <<
+				    flag & ~(HINFC504_CON_ECCTYPE_MASK <<
 				    HINFC504_CON_ECCTYPE_SHIFT), HINFC504_CON);
 
 		host->offset = 0;

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-02-28  4:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-11 10:25 [patch] mtd: hisilicon: && vs & typo Dan Carpenter
2015-02-11 10:25 ` Dan Carpenter
2015-02-12 21:37 ` Brian Norris
2015-02-12 21:37   ` Brian Norris
2015-02-28  4:44   ` Zhou Wang
2015-02-28  4:44     ` Zhou Wang
2015-02-15  9:07 ` Brian Norris
2015-02-15  9:07   ` Brian Norris
2015-02-28  4:47   ` Zhou Wang
2015-02-28  4:47     ` Zhou Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.