]> git.baikalelectronics.ru Git - kernel.git/commitdiff
hwmon: (corsair-psu) Remove unneeded semicolons
authorWan Jiabing <wanjiabing@vivo.com>
Tue, 27 Apr 2021 04:42:19 +0000 (12:42 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 10 May 2021 13:27:33 +0000 (06:27 -0700)
Fix the following coccicheck warning:

./drivers/hwmon/corsair-psu.c:379:2-3: Unneeded semicolon

Remove unneeded semicolons.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Link: https://lore.kernel.org/r/20210427044219.7799-1-wanjiabing@vivo.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/corsair-psu.c

index 3a5807e4a2efb8d5d084a3083e9b8c328d0be9b5..02298b86b57b6b6cae821346ac2e19e2270468d9 100644 (file)
@@ -355,7 +355,7 @@ static umode_t corsairpsu_hwmon_power_is_visible(const struct corsairpsu_data *p
                return 0444;
        default:
                return 0;
-       };
+       }
 }
 
 static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv, u32 attr,
@@ -376,7 +376,7 @@ static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv
                break;
        default:
                break;
-       };
+       }
 
        return res;
 }