staging: sm750fb: Add braces around if condition
Subsystems (2)
PATCH v2 1/1 staging: sm750fb: Add braces around if condition
Fix the checkpatch issue:
braces {} should be used on all arms
of if-else statement.
Signed-off-by Sreya Mittal <[email protected]>
---
Changes in v2:
*Add tag to the commit message
drivers/staging/sm750fb/ddk750_chip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/sm750fb/ddk750_chip.c +2 -2
@@ -16,9 +16,9 @@ logical_chip_type_t sm750_get_chip_type(void)void sm750_set_chip_type (unsigned short devId,u8 revId) { -if (devId ==0x718 ) +if (devId ==0x718 ) { chip =SM718 ; -else if (devId ==0x750 ) { + }else if (devId ==0x750 ) { chip =SM750 ;/* SM750 and SM750LE are different in their revision ID only. */ if (revId ==SM750LE_REVISION_ID ) {
Signature · 1 line
2.9.3