mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-22 21:21:02 +07:00
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 <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1846472c91
commit
df55a1fadf
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user