From: Markus Elfring Date: Wed, 1 Nov 2017 18:00:59 +0000 (+0100) Subject: platform/x86: sony-laptop: Drop variable assignment in sony_nc_setup_rfkill() X-Git-Tag: v4.19~2100^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4a18052bb99e25d2c0074981120b76638285c22;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Andy Shevchenko --- diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 4332cc9..62aa2c3 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/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;