aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-02-28 05:02:28 -0500
committerBrian Norris <computersforpeace@gmail.com>2015-03-11 18:21:48 -0400
commit99f6d50dc81ef713f64abbb5ec6b94167203d8c5 (patch)
tree8de3a25fbc41e978b0fad1d5af068db1a6ee8cf8 /drivers/mtd
parentb1a2348a1ac1380adf429035dbf3fdad0d5367bc (diff)
mtd: nand: denali: drop dead code
TclsRising is always 1. Caught by Coverity. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/denali.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index f44c6061536a..09f51395f2c0 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,
225 uint16_t Twhr[6] = {120, 80, 80, 60, 60, 60}; 225 uint16_t Twhr[6] = {120, 80, 80, 60, 60, 60};
226 uint16_t Tcs[6] = {70, 35, 25, 25, 20, 15}; 226 uint16_t Tcs[6] = {70, 35, 25, 25, 20, 15};
227 227
228 uint16_t TclsRising = 1;
229 uint16_t data_invalid_rhoh, data_invalid_rloh, data_invalid; 228 uint16_t data_invalid_rhoh, data_invalid_rloh, data_invalid;
230 uint16_t dv_window = 0; 229 uint16_t dv_window = 0;
231 uint16_t en_lo, en_hi; 230 uint16_t en_lo, en_hi;
@@ -276,8 +275,6 @@ static void nand_onfi_timing_set(struct denali_nand_info *denali,
276 re_2_re = CEIL_DIV(Trhz[mode], CLK_X); 275 re_2_re = CEIL_DIV(Trhz[mode], CLK_X);
277 we_2_re = CEIL_DIV(Twhr[mode], CLK_X); 276 we_2_re = CEIL_DIV(Twhr[mode], CLK_X);
278 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X); 277 cs_cnt = CEIL_DIV((Tcs[mode] - Trp[mode]), CLK_X);
279 if (!TclsRising)
280 cs_cnt = CEIL_DIV(Tcs[mode], CLK_X);
281 if (cs_cnt == 0) 278 if (cs_cnt == 0)
282 cs_cnt = 1; 279 cs_cnt = 1;
283 280