Skip to content

Commit

Permalink
platform/x86: sony-laptop: Drop variable assignment in sony_nc_setup_…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Markus Elfring authored and Andy Shevchenko committed Nov 5, 2017
1 parent f6c8a31 commit e4a1805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4a1805

Please sign in to comment.