src/include: Fix indent for case labels
Fix the following error detected by checkpatch.pl: ERROR: switch and case should be at the same indent TEST=Build and run on Galileo Gen2 Change-Id: I92f00254c7fcb79a5ecd4ba5e19a757cfe5c11fa Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18683 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
6083c7ebc7
commit
db469a689b
|
@ -80,24 +80,24 @@ struct __xchg_dummy { unsigned long a[100]; };
|
||||||
static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size)
|
static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size)
|
||||||
{
|
{
|
||||||
switch (size) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
__asm__ __volatile__("xchgb %b0,%1"
|
__asm__ __volatile__("xchgb %b0,%1"
|
||||||
:"=q" (x)
|
:"=q" (x)
|
||||||
:"m" (*__xg(ptr)), "0" (x)
|
:"m" (*__xg(ptr)), "0" (x)
|
||||||
:"memory");
|
:"memory");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
__asm__ __volatile__("xchgw %w0,%1"
|
__asm__ __volatile__("xchgw %w0,%1"
|
||||||
:"=r" (x)
|
:"=r" (x)
|
||||||
:"m" (*__xg(ptr)), "0" (x)
|
:"m" (*__xg(ptr)), "0" (x)
|
||||||
:"memory");
|
:"memory");
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
__asm__ __volatile__("xchgl %0,%1"
|
__asm__ __volatile__("xchgl %0,%1"
|
||||||
:"=r" (x)
|
:"=r" (x)
|
||||||
:"m" (*__xg(ptr)), "0" (x)
|
:"m" (*__xg(ptr)), "0" (x)
|
||||||
:"memory");
|
:"memory");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue