From bfdb8937b27700546bc233287c657e2f634a3177 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Tue, 7 Mar 2017 15:17:04 -0800 Subject: src/include: 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: I00b59f6a27c3acb393deaa763596363b7e958efd Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18654 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Paul Menzel --- src/include/pc80/mc146818rtc.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/include/pc80/mc146818rtc.h') diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index 39f58d6015..be90358b05 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -140,14 +140,12 @@ static inline void cmos_write(unsigned char val, unsigned char addr) * eg. the Century / AltCentury byte. So to be safe, disable * RTC before changing any value. */ - if ((addr != RTC_CONTROL) && !(control_state & RTC_SET)) { + if ((addr != RTC_CONTROL) && !(control_state & RTC_SET)) cmos_write_inner(control_state | RTC_SET, RTC_CONTROL); - } cmos_write_inner(val, addr); /* reset to prior configuration */ - if ((addr != RTC_CONTROL) && !(control_state & RTC_SET)) { + if ((addr != RTC_CONTROL) && !(control_state & RTC_SET)) cmos_write_inner(control_state, RTC_CONTROL); - } } static inline void cmos_disable_rtc(void) -- cgit v1.2.3