From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Wed, 01 Nov 2017 18:47:57 +0000 Subject: [PATCH v2 2/3] Sony-laptop: Delete an unnecessary variable initialisation in sony_nc_setup_rfkill() Message-Id: <3bc1148d-01e1-11fe-1594-1c7ffd83600f@users.sourceforge.net> List-Id: References: <17ee534c-9fe6-19c4-0522-76cd3cbe5f88@users.sourceforge.net> In-Reply-To: <17ee534c-9fe6-19c4-0522-76cd3cbe5f88@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: platform-driver-x86@vger.kernel.org, Andy Shevchenko , Darren Hart , Marco Chiappero , Matthew Garrett , Mattia Dongili Cc: LKML , kernel-janitors@vger.kernel.org, Andy Shevchenko From: Markus Elfring Date: Wed, 1 Nov 2017 19:00:59 +0100 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 --- drivers/platform/x86/sony-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 4332cc982ce0..62aa2c37b8d2 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; -- 2.14.3