提交 c95777a4 编写于 作者: R Rob Ward 提交者: Brian Norris

mtd: phram: Fix whitespace issues

Fix various whitespace issues.

No functional changes.
Signed-off-by: NRob Ward <robert.ward114@googlemail.com>
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 a41595b3
...@@ -193,6 +193,7 @@ static int parse_name(char **pname, const char *token) ...@@ -193,6 +193,7 @@ static int parse_name(char **pname, const char *token)
static inline void kill_final_newline(char *str) static inline void kill_final_newline(char *str)
{ {
char *newline = strrchr(str, '\n'); char *newline = strrchr(str, '\n');
if (newline && !newline[1]) if (newline && !newline[1])
*newline = 0; *newline = 0;
} }
...@@ -231,7 +232,7 @@ static int phram_setup(const char *val) ...@@ -231,7 +232,7 @@ static int phram_setup(const char *val)
strcpy(str, val); strcpy(str, val);
kill_final_newline(str); kill_final_newline(str);
for (i=0; i<3; i++) for (i = 0; i < 3; i++)
token[i] = strsep(&str, ","); token[i] = strsep(&str, ",");
if (str) if (str)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册