Received: from smtp17.mail.ru ([94.100.176.154]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UAyRm-000529-HC for linux-mtd@lists.infradead.org; Thu, 28 Feb 2013 08:02:36 +0000 From: Alexander Shiyan To: linux-mtd@lists.infradead.org Subject: [PATCH 1/3] mtd: nand_base: Removed unnecessary command masking Date: Thu, 28 Feb 2013 12:02:19 +0400 Message-Id: <1362038541-22406-1-git-send-email-shc_work@mail.ru> Cc: Artem Bityutskiy , Brian Norris , David Woodhouse , Alexander Shiyan List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- drivers/mtd/nand/nand_base.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 4321415..13c89c9 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -631,8 +631,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; -- 1.7.3.4