* [PATCH] mtd: phram: Fix whitespace issues
@ 2014-07-13 20:14 Rob Ward
2014-07-15 1:46 ` Brian Norris
0 siblings, 1 reply; 2+ messages in thread
From: Rob Ward @ 2014-07-13 20:14 UTC (permalink / raw)
To: joern, dwmw2; +Cc: linux-mtd, linux-kernel
>From ae6ea29f112475aa1e2da20caabe36e318fd51c4 Mon Sep 17 00:00:00 2001
From: Rob Ward <robert.ward114@googlemail.com>
Date: Sun, 13 Jul 2014 20:39:01 +0100
Subject: [PATCH] mtd: phram: Fix whitespace issues
Fix various whitespace issues.
No functional changes.
Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
---
drivers/mtd/devices/phram.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c
index 2cceebf..cf02f24 100644
--- a/drivers/mtd/devices/phram.c
+++ b/drivers/mtd/devices/phram.c
@@ -195,6 +195,7 @@ static int parse_name(char **pname, const char *token)
static inline void kill_final_newline(char *str)
{
char *newline = strrchr(str, '\n');
+
if (newline && !newline[1])
*newline = 0;
}
@@ -233,7 +234,7 @@ static int phram_setup(const char *val)
strcpy(str, val);
kill_final_newline(str);
- for (i=0; i<3; i++)
+ for (i = 0; i < 3; i++)
token[i] = strsep(&str, ",");
if (str)
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: phram: Fix whitespace issues
2014-07-13 20:14 [PATCH] mtd: phram: Fix whitespace issues Rob Ward
@ 2014-07-15 1:46 ` Brian Norris
0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2014-07-15 1:46 UTC (permalink / raw)
To: Rob Ward; +Cc: dwmw2, joern, linux-kernel, linux-mtd
On Sun, Jul 13, 2014 at 09:14:21PM +0100, Rob Ward wrote:
> From ae6ea29f112475aa1e2da20caabe36e318fd51c4 Mon Sep 17 00:00:00 2001
> From: Rob Ward <robert.ward114@googlemail.com>
> Date: Sun, 13 Jul 2014 20:39:01 +0100
> Subject: [PATCH] mtd: phram: Fix whitespace issues
>
> Fix various whitespace issues.
>
> No functional changes.
>
> Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
Pushed to l2-mtd.git. Thanks.
Brian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-15 1:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-13 20:14 [PATCH] mtd: phram: Fix whitespace issues Rob Ward
2014-07-15 1:46 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox