]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: unisys: clean up bracing in vbuschannel_sanitize_buffer()
authorBenjamin Romer <benjamin.romer@unisys.com>
Thu, 23 Oct 2014 18:29:40 +0000 (14:29 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:07 +0000 (10:33 +0800)
The bracing in vbuschannel_sanitize_buffer() in vbusdeviceinfo.h is
messy. Clean these up.

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h

index f13dddc1b5c823fd14002dc6a94d6545eb0e3673..58b64a3ac6ebe919aa5501a4cc7c19d47e228544 100644 (file)
@@ -63,8 +63,9 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
                                        p++;
                                        remain--;
                                        chars++;
-                               } else if (p == NULL)
+                               } else if (p == NULL) {
                                        chars++;
+                               }
                                nonprintable_streak = 0;
                        }
                        if (remain > 0) {
@@ -72,10 +73,12 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
                                p++;
                                remain--;
                                chars++;
-                       } else if (p == NULL)
+                       } else if (p == NULL) {
                                chars++;
-               } else
+                       }
+               } else {
                        nonprintable_streak = 1;
+               }
                src++;
                srcmax--;
        }