mtd: nand_base: Removed unnecessary command masking

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Apr 5 08:59:05 EDT 2013


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=fb066adadd224d5e46320b3fa7a80311c09be0d9
Commit:     fb066adadd224d5e46320b3fa7a80311c09be0d9
Parent:     001c33ab4caccefb41ebd00a9ea2cd2bf386c16c
Author:     Alexander Shiyan <shc_work at mail.ru>
AuthorDate: Thu Feb 28 12:02:19 2013 +0400
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Apr 5 12:56:44 2013 +0100

    mtd: nand_base: Removed unnecessary command masking
    
    NAND command, passed to cmd_ctrl(), is masked with 0xff. This patch
    removes this since masking is not necessary and masking is not performed
    in other places for same call.
    
    Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/nand_base.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 4c9eed1..ad0a88f 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -628,8 +628,7 @@ static void nand_command_lp(struct mtd_info *mtd, unsigned int command,
 	}
 
 	/* Command latch cycle */
-	chip->cmd_ctrl(mtd, command & 0xff,
-		       NAND_NCE | NAND_CLE | NAND_CTRL_CHANGE);
+	chip->cmd_ctrl(mtd, command, NAND_NCE | NAND_CLE | NAND_CTRL_CHANGE);
 
 	if (column != -1 || page_addr != -1) {
 		int ctrl = NAND_CTRL_CHANGE | NAND_NCE | NAND_ALE;



More information about the linux-mtd-cvs mailing list