Commit e4a18052 authored by Markus Elfring's avatar Markus Elfring Committed by Andy Shevchenko

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent f6c8a317
...@@ -1627,7 +1627,7 @@ static const struct rfkill_ops sony_rfkill_ops = { ...@@ -1627,7 +1627,7 @@ static const struct rfkill_ops sony_rfkill_ops = {
static int sony_nc_setup_rfkill(struct acpi_device *device, static int sony_nc_setup_rfkill(struct acpi_device *device,
enum sony_nc_rfkill nc_type) enum sony_nc_rfkill nc_type)
{ {
int err = 0; int err;
struct rfkill *rfk; struct rfkill *rfk;
enum rfkill_type type; enum rfkill_type type;
const char *name; const char *name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment