staging: sm750fb: Add braces around if statement.
authorVarsha Rao <rvarsha016@gmail.com>
Mon, 27 Feb 2017 10:03:45 +0000 (15:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:05 +0000 (09:17 +0100)
Added braces around if statement. This patch fixes the following
checkpatch issue:

CHECK: braces {} should be used on all arms of this statement

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c

index 10cf7295dc6c7335eef06b6146f41350362390da..7948ca96459cf1b5d71c23a86ed948533101844c 100644 (file)
@@ -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) {