[PATCH] mtd: phram: Fix whitespace issues

From: Rob Ward
Date: Sun Jul 13 2014 - 15:39:01 EST


Fix various whitespace issues.

No functional changes.

Signed-off-by: Rob Ward <robert.ward114@xxxxxxxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/