mtd: nand: denali: drop dead code
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Apr 22 10:59:04 PDT 2015
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=99f6d50dc81ef713f64abbb5ec6b94167203d8c5
Commit: 99f6d50dc81ef713f64abbb5ec6b94167203d8c5
Parent: b1a2348a1ac1380adf429035dbf3fdad0d5367bc
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Feb 28 02:02:28 2015 -0800
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Mar 11 15:21:48 2015 -0700
mtd: nand: denali: drop dead code
TclsRising is always 1.
Caught by Coverity.
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Cc: Masahiro Yamada <yamada.m at jp.panasonic.com>
---
drivers/mtd/nand/denali.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index f44c606..09f5139 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -225,7 +225,6 @@ static void nand_onfi_timing_set(struct denali_nand_info *denali,
uint16_t Twhr[6] = {120, 80, 80, 60, 60, 60};
uint16_t Tcs[6] = {70, 35, 25, 25, 20, 15};
- uint16_t TclsRising = 1;
uint16_t data_invalid_rhoh, data_invalid_rloh, data_invalid;
uint16_t dv_window = 0;
uint16_t en_lo, en_hi;
@@ -276,8 +275,6 @@ static void nand_onfi_timing_set(struct denali_nand_info *denali,
re_2_re = CEIL_DIV(Trhz[mode], CLK_X);
we_2_re = CEIL_DIV(Twhr[mode], CLK_X);
cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X);
- if (!TclsRising)
- cs_cnt = CEIL_DIV(Tcs[mode], CLK_X);
if (cs_cnt == 0)
cs_cnt = 1;
More information about the linux-mtd-cvs
mailing list