src/lib: Remove braces for single statements
Fix the following warning detected by checkpatch.pl: WARNING: braces {} are not necessary for single statement blocks TEST=Build and run on Galileo Gen2 Change-Id: Ie4b41f6fb75142ddd75103a55e0347ed85e7e873 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18697 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins)
This commit is contained in:
@ -5,15 +5,13 @@ void *memmove(void *vdest, const void *vsrc, size_t count)
|
||||
char *dest = vdest;
|
||||
|
||||
if (dest <= src) {
|
||||
while (count--) {
|
||||
while (count--)
|
||||
*dest++ = *src++;
|
||||
}
|
||||
} else {
|
||||
src += count - 1;
|
||||
dest += count - 1;
|
||||
while(count--) {
|
||||
while(count--)
|
||||
*dest-- = *src--;
|
||||
}
|
||||
}
|
||||
return vdest;
|
||||
}
|
||||
|
Reference in New Issue
Block a user