diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-02-28 03:02:19 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-04-05 07:56:44 -0400 |
commit | fb066adadd224d5e46320b3fa7a80311c09be0d9 (patch) | |
tree | e3f5b73acd40d1934c69bf4df72b49f3e78873aa /drivers/mtd/nand | |
parent | 001c33ab4caccefb41ebd00a9ea2cd2bf386c16c (diff) |
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@mail.ru>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | 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 4c9eed13d606..ad0a88f13794 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, | |||
628 | } | 628 | } |
629 | 629 | ||
630 | /* Command latch cycle */ | 630 | /* Command latch cycle */ |
631 | chip->cmd_ctrl(mtd, command & 0xff, | 631 | chip->cmd_ctrl(mtd, command, NAND_NCE | NAND_CLE | NAND_CTRL_CHANGE); |
632 | NAND_NCE | NAND_CLE | NAND_CTRL_CHANGE); | ||
633 | 632 | ||
634 | if (column != -1 || page_addr != -1) { | 633 | if (column != -1 || page_addr != -1) { |
635 | int ctrl = NAND_CTRL_CHANGE | NAND_NCE | NAND_ALE; | 634 | int ctrl = NAND_CTRL_CHANGE | NAND_NCE | NAND_ALE; |