soc: arm: cypress: fix soc_gpio missing final else in construct
The final else was missing in the if ... else if ... construct. This commit adds a non-empty else {} to comply with coding guideline 15.7. Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
This commit is contained in:
parent
efc78b5b46
commit
b003c971f6
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ static uint32_t soc_gpio_get_drv_mode(uint32_t flags)
|
|||
drv_mode = CY_GPIO_DM_PULLUP_IN_OFF;
|
||||
} else if (flags & SOC_GPIO_PULLDOWN) {
|
||||
drv_mode = CY_GPIO_DM_PULLDOWN_IN_OFF;
|
||||
} else {
|
||||
;
|
||||
}
|
||||
|
||||
if (flags & SOC_GPIO_INPUTENABLE) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue