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 <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18654
Tested-by: build bot (Jenkins)
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
6625ecc344
commit
bfdb8937b2
4 changed files with 7 additions and 14 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue