projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a41595b
)
mtd: phram: Fix whitespace issues
author
Rob Ward
<robert.ward114@googlemail.com>
Sun, 13 Jul 2014 19:39:01 +0000
(20:39 +0100)
committer
Brian Norris
<computersforpeace@gmail.com>
Mon, 14 Jul 2014 17:20:19 +0000
(10:20 -0700)
Fix various whitespace issues.
No functional changes.
Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/phram.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/phram.c
b/drivers/mtd/devices/phram.c
index 3bac7dadf8d6f21fc39bbb07e72a7f9636853b79..effd9a4ef7eee55ff6cd8e58f4c35930e86957d0 100644
(file)
--- a/
drivers/mtd/devices/phram.c
+++ b/
drivers/mtd/devices/phram.c
@@
-193,6
+193,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;
}
@@
-231,7
+232,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)