From patchwork Thu Apr 7 20:20:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giedrius Statkevi?ius X-Patchwork-Id: 8776891 Return-Path: X-Original-To: patchwork-platform-driver-x86@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B4A9C0553 for ; Thu, 7 Apr 2016 20:20:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 666032020F for ; Thu, 7 Apr 2016 20:20:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9688C20204 for ; Thu, 7 Apr 2016 20:20:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124AbcDGUU0 (ORCPT ); Thu, 7 Apr 2016 16:20:26 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35362 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755483AbcDGUUX (ORCPT ); Thu, 7 Apr 2016 16:20:23 -0400 Received: by mail-wm0-f65.google.com with SMTP id a140so24143960wma.2; Thu, 07 Apr 2016 13:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ry9EZk6ohq4hgzbMHBRS4E0SR10M0zdmnK7KKTsjyHs=; b=LJprUOvhDfJLNyUW8p9agR/4HoZelylDMcHDaTJCODKc3g5O2Su+J0bNgz7naQhqpW YHRTqLlCsEl0d3Bk2Os8Vl2h9rqIwx0E/55Doyq+FTMpZjgLe24TEglhDvRL++l/bK5M vAOAK86qQCaXDt77V9UUmABlMduEFmhNZLD3l2lgCiHIgKFTT4L1P5NHn1XEFX1KaByf ZqRM8AEqhfUEdNQK73XW8IMi5nQ1C10vM5vO5gXVaTfb2qkU0cJ4uLmEbCOAllsxbI/y Y06Z9HDg3gs+YpnTp/NjeGH9z4RjB5dETX2qzfhKJ1B9qq8R6V4CslzRRcgEtbapx4fW 7tkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ry9EZk6ohq4hgzbMHBRS4E0SR10M0zdmnK7KKTsjyHs=; b=lqPjiTOLYsJsiOhzrShHxZYb+R7Od+bq9b+m58NUpeou1NCNrLAmJ4dmeHegFnmTIv YL3KwOKTX7NIXVoIQwfUGkJ/qde+VGCuyGxbjwGXaPNYAgLQwpJh1QL0egyZbBB8MFPC DGM9TRNGbA+IznsCu+d1zMRFpdFshhB8W/6Jm4eLPyVt48W2u8FnoTNiWLHmmoBW5j9s jdAvAe/lBiGwHy4aRx/HArw4yU+XEzJcP5eb79aHCq8aAeKCAN5gNfpvy8w/7zNEG9HS GasQfnJ2jp0rbNqz/17wVxNZTWx3FgntdDfWLpJPQu36UhKVDzPfnynKyooaQw2TfttS susg== X-Gm-Message-State: AD7BkJJ4psJYrQt4HVMt5+IUpCgD8Xi9kHhwba0ReGdEnHjFZrN9ii48hopf1/q39ENyeg== X-Received: by 10.194.216.99 with SMTP id op3mr5635277wjc.26.1460060417290; Thu, 07 Apr 2016 13:20:17 -0700 (PDT) Received: from tyrael.localdomain (78-57-189-147.static.zebra.lt. [78.57.189.147]) by smtp.gmail.com with ESMTPSA id ck9sm5050981wjc.22.2016.04.07.13.20.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Apr 2016 13:20:16 -0700 (PDT) From: =?UTF-8?q?Giedrius=20Statkevi=C4=8Dius?= To: corentin.chary@gmail.com, dvhart@infradead.org Cc: acpi4asus-user@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Giedrius=20Statkevi=C4=8Dius?= Subject: [PATCH 2/2] asus-laptop: remove unused variable Date: Thu, 7 Apr 2016 23:20:01 +0300 Message-Id: <1460060401-20742-2-git-send-email-giedrius.statkevicius@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1460060401-20742-1-git-send-email-giedrius.statkevicius@gmail.com> References: <1460060401-20742-1-git-send-email-giedrius.statkevicius@gmail.com> MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP `out' was assigned value but it was never used so remove it Signed-off-by: Giedrius Statkevi?ius --- drivers/platform/x86/asus-laptop.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index d86d42e..39ddcee 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -946,11 +946,8 @@ static ssize_t sysfs_acpi_set(struct asus_laptop *asus, const char *method) { int rv, value; - int out = 0; rv = parse_arg(buf, count, &value); - if (rv > 0) - out = value ? 1 : 0; if (write_acpi_int(asus->handle, method, value)) return -ENODEV;