platform/x86: asus-laptop: remove redundant braces in if statements
authorEdson Juliano Drosdeck <edson.drosdeck@gmail.com>
Mon, 16 Oct 2023 19:13:49 +0000 (16:13 -0300)
committerHans de Goede <hdegoede@redhat.com>
Sat, 2 Dec 2023 11:27:25 +0000 (12:27 +0100)
Adhere to Linux kernel coding style.

Reported by checkpatch:

WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Edson Juliano Drosdeck <edson.drosdeck@gmail.com>
Link: https://lore.kernel.org/r/20231016191349.3856-1-edson.drosdeck@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-laptop.c

index 761029f39314a667a0c8f64c274bb007503ea94f..bf03ea1b1274782fa9580ee1bafc32bd6c87571b 100644 (file)
@@ -1816,9 +1816,8 @@ static void asus_dmi_check(void)
                return;
 
        /* On L1400B WLED control the sound card, don't mess with it ... */
-       if (strncmp(model, "L1400B", 6) == 0) {
+       if (strncmp(model, "L1400B", 6) == 0)
                wlan_status = -1;
-       }
 }
 
 static bool asus_device_present;