mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jiri Pinkava <jiri.pinkava@vscht.cz>
To: <dedekind1@gmail.com>
Cc: <ben-linux@fluff.org>, <linux-kernel@vger.kernel.org>,
	<linux-mtd@lists.infradead.org>,
	Jiri Pinkava <jiri.pinkava@vscht.cz>
Subject: [PATCH 2/2] nand: Remove unnecessary variable
Date: Wed, 13 Apr 2011 11:59:31 +0200	[thread overview]
Message-ID: <1302688771-17252-2-git-send-email-jiri.pinkava@vscht.cz> (raw)
In-Reply-To: <1302688771-17252-1-git-send-email-jiri.pinkava@vscht.cz>


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

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
 }
 
 /**
-- 
1.7.4.4


  reply	other threads:[~2011-04-13 10:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11  1:27 [PATCH] nand: Fix S3C NAND clock stop Jiri Pinkava
2011-04-11  2:05 ` Randy Dunlap
2011-04-11  3:15   ` Jiří Pinkava
2011-04-11 14:48     ` Jiri Pinkava
2011-04-13  3:36       ` Artem Bityutskiy
2011-04-13  9:59         ` [PATCH 1/2] " Jiri Pinkava
2011-04-13  9:59           ` Jiri Pinkava [this message]
2011-04-14 12:17             ` [PATCH 2/2] nand: Remove unnecessary variable Artem Bityutskiy
2011-04-14 12:16           ` [PATCH 1/2] nand: Fix S3C NAND clock stop Artem Bityutskiy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1302688771-17252-2-git-send-email-jiri.pinkava@vscht.cz \
    --to=jiri.pinkava@vscht.cz \
    --cc=ben-linux@fluff.org \
    --cc=dedekind1@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®