diff mbox

[2/2] nand: Remove unnecessary variable

Message ID 1302688771-17252-2-git-send-email-jiri.pinkava@vscht.cz
State New, archived
Headers show

Commit Message

Jiri Pinkava April 13, 2011, 9:59 a.m. UTC
Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
---
 drivers/mtd/nand/s3c2410.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

Comments

Artem Bityutskiy April 14, 2011, 12:17 p.m. UTC | #1
On Wed, 2011-04-13 at 11:59 +0200, Jiri Pinkava wrote:
> Signed-off-by: Jiri Pinkava <jiri.pinkava@vscht.cz>
> ---
>  drivers/mtd/nand/s3c2410.c |   12 +++++-------
>  1 files changed, 5 insertions(+), 7 deletions(-)

Let's drop this, sorry, I gave you wrong advise.
diff mbox

Patch

diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index cea775a..8041038 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -54,12 +54,6 @@  static int hardware_ecc = 1;
 static int hardware_ecc = 0;
 #endif
 
-#ifdef CONFIG_MTD_NAND_S3C2410_CLKSTOP
-static const int clock_stop = 1;
-#else
-static const int clock_stop = 0;
-#endif
-
 
 /* new oob placement block for use with hardware ecc generation
  */
@@ -169,7 +163,11 @@  static struct s3c2410_platform_nand *to_nand_plat(struct platform_device *dev)
 
 static inline int allow_clk_suspend(struct s3c2410_nand_info *info)
 {
-	return clock_stop;
+#ifdef CONFIG_MTD_NAND_S3C2410_CLKSTOP
+	return 1;
+#else
+	return 0;
+#endif
 }
 
 /**