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>
This commit is contained in:
Markus Elfring 2017-11-01 19:00:59 +01:00 committed by Andy Shevchenko
parent f6c8a317ab
commit e4a18052bb
1 changed files with 1 additions and 1 deletions

View File

@ -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;