diff options
author | Rob Ward <robert.ward114@googlemail.com> | 2014-07-13 15:39:01 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-07-14 13:20:19 -0400 |
commit | c95777a4bb5daca9857157cc18cb7b8d470364aa (patch) | |
tree | c3e056cfca3bea9b896641db95ca09b7a31ece4a /drivers/mtd | |
parent | a41595b34ba40fb97345dfef85ea510981a2e17b (diff) |
mtd: phram: Fix whitespace issues
Fix various whitespace issues.
No functional changes.
Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/devices/phram.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c index 3bac7dadf8d6..effd9a4ef7ee 100644 --- 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) | |||
193 | static inline void kill_final_newline(char *str) | 193 | static inline void kill_final_newline(char *str) |
194 | { | 194 | { |
195 | char *newline = strrchr(str, '\n'); | 195 | char *newline = strrchr(str, '\n'); |
196 | |||
196 | if (newline && !newline[1]) | 197 | if (newline && !newline[1]) |
197 | *newline = 0; | 198 | *newline = 0; |
198 | } | 199 | } |
@@ -231,7 +232,7 @@ static int phram_setup(const char *val) | |||
231 | strcpy(str, val); | 232 | strcpy(str, val); |
232 | kill_final_newline(str); | 233 | kill_final_newline(str); |
233 | 234 | ||
234 | for (i=0; i<3; i++) | 235 | for (i = 0; i < 3; i++) |
235 | token[i] = strsep(&str, ","); | 236 | token[i] = strsep(&str, ","); |
236 | 237 | ||
237 | if (str) | 238 | if (str) |