From: Rob Ward Date: Sun, 13 Jul 2014 19:39:01 +0000 (+0100) Subject: mtd: phram: Fix whitespace issues X-Git-Tag: firefly_0821_release~176^2~2922^2~54 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c95777a4bb5daca9857157cc18cb7b8d470364aa;p=firefly-linux-kernel-4.4.55.git mtd: phram: Fix whitespace issues Fix various whitespace issues. No functional changes. Signed-off-by: Rob Ward Signed-off-by: Brian Norris --- 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) 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)