Commit df55a1fa authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: clean up bracing in vbuschannel_sanitize_buffer()

The bracing in vbuschannel_sanitize_buffer() in vbusdeviceinfo.h is
messy. Clean these up.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1846472c
...@@ -63,8 +63,9 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax) ...@@ -63,8 +63,9 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
p++; p++;
remain--; remain--;
chars++; chars++;
} else if (p == NULL) } else if (p == NULL) {
chars++; chars++;
}
nonprintable_streak = 0; nonprintable_streak = 0;
} }
if (remain > 0) { if (remain > 0) {
...@@ -72,10 +73,12 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax) ...@@ -72,10 +73,12 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
p++; p++;
remain--; remain--;
chars++; chars++;
} else if (p == NULL) } else if (p == NULL) {
chars++; chars++;
} else }
} else {
nonprintable_streak = 1; nonprintable_streak = 1;
}
src++; src++;
srcmax--; srcmax--;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment