瀏覽代碼

platform/x86: sony-laptop: Drop variable assignment in sony_nc_setup_rfkill()

The local variable "err" will eventually be set to an appropriate value
a bit later. Thus omit the explicit initialisation at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Markus Elfring 7 年之前
父節點
當前提交
e4a18052bb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/platform/x86/sony-laptop.c

+ 1 - 1
drivers/platform/x86/sony-laptop.c

@@ -1627,7 +1627,7 @@ static const struct rfkill_ops sony_rfkill_ops = {
 static int sony_nc_setup_rfkill(struct acpi_device *device,
 				enum sony_nc_rfkill nc_type)
 {
-	int err = 0;
+	int err;
 	struct rfkill *rfk;
 	enum rfkill_type type;
 	const char *name;