From: Benjamin Romer Date: Thu, 23 Oct 2014 18:29:40 +0000 (-0400) Subject: staging: unisys: clean up bracing in vbuschannel_sanitize_buffer() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=df55a1fadf4a542a2457288178354bf47321f75a;p=openwrt%2Fstaging%2Fblogic.git 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: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h b/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h index f13dddc1b5c8..58b64a3ac6eb 100644 --- a/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h +++ b/drivers/staging/unisys/common-spar/include/vbusdeviceinfo.h @@ -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--; }