mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-13 16:50:05 +00:00
mtd: hisilicon: && vs & typo
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> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
72f55d74bd
commit
dd58d38fb3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user