From patchwork Fri Jun 26 13:05:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11627583 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E48A913B4 for ; Fri, 26 Jun 2020 13:08:37 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B946F2080C for ; Fri, 26 Jun 2020 13:08:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KBPS0oMY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rD9Q+/Md" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B946F2080C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ReQ62f1dA84hsahNjopB2UN/Z+Y8FTRoEBuxqB9UXLw=; b=KBPS0oMY9Wl34PaTMF2qcvv1p QDbh4pn+YKrRBHb5UrxLcPDALZytEH1ZaHaFATojFGLblgDa0UYWTs5EPyRZk5NOhslSeebcN4Azi ZbuUQwV4yEN5jhlar0lJcBElnjdJ0uqBvFkqPDTkm8vZu+qT2/5E1BnUcydyU6ZceCa+iiDTMJZzG cCT1+eq25guaXjoj+TVgGFxcV9mvB9D+G4vIF/j0/743vsWXu/smTx02jSNs1jHYVULAxCNFbhyIo RELgjN7uGHfZz57wgoqZ5+5i4sh2rTpTn5Pksl3VhbM63oA/KLOi3OkNg7UMVuyrAyJjCBI0IqBH1 gTElbfTfQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1joo3b-0002ud-Lr; Fri, 26 Jun 2020 13:06:15 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1joo30-0002hb-GO for linux-arm-kernel@lists.infradead.org; Fri, 26 Jun 2020 13:05:42 +0000 Received: by mail-wr1-x441.google.com with SMTP id g18so9483776wrm.2 for ; Fri, 26 Jun 2020 06:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DnDd4j0ST145ZKeSSkw7lJ4M0WvMcY2dd1eGT6PhUvQ=; b=rD9Q+/MdYAlK7GwwCud9z4mDJYqfCSBtUUO+yQP8diYsyyOv3LrCBx8gMTRQJmNPqy 8eR9J0ba/xpUahmzaB3rFvWZm+r/9s4zZcLfV9msgEtRMxiv+BiN7AEt1eaBt3husw5h vc/ojDmi7VtWGYsgj+z6R71ru2v8qyzUwKYVv824FY7h79tch/fa19ZIafKJGLK/uhMV FfdeN1CXMUHH0s4W392zQGtLK5rCmUbpYQwkcDSa33s4ZZpa6sGMQlV8CrK6lLgjGWa6 W/S/88/kdyIbRCWOJmvCL/vLCa2ASIzlLwiO6+v3ERLgDPYKFUwnnEMPpVfwSQILNjjg USvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=DnDd4j0ST145ZKeSSkw7lJ4M0WvMcY2dd1eGT6PhUvQ=; b=eIq4s9Qy9EGPDFhRVAIy+78cpCaI7Wy/XVpGmWbVG4qlMwyxQsbfybNaquWddiRyFi xqnV9t2W0ycCaQ2jnhahqPYZuFuHLcnDbUvZBjTU0XKTZcvblhwIUQ7tqgt+Vtbi0gLG DK+eJqgBGvNBOWsOQFplDCFCn6dt8EX1dNQzJW2ZT+OkJAultuS/Sfv0tzoRhquA3gLr 9F4n6H2+ncGorabJiu5zlnSwO91qVW8/3Ep/hDQP1QXARR1qJhmbCfSZc0TW+0iMI4j4 t/9dSmWJtYKVqPXstMCD9IhFTtNvRrFqDDuoNbN40Ohqm9o+/Yw+39tpQiMLHiK/ES1s mNNg== X-Gm-Message-State: AOAM531rxUcJcS0k5DifCJVUus/yVtFBPqWnJ+taqsxn7/SKWMwpOMkn 5vpdfLIRdv/BG31/XK7H+zQOag== X-Google-Smtp-Source: ABdhPJxohCKHaCy7HdNTnlvnqVvGHqegU4a3Ml98qFUy57L2Z9oR2VLu0jP0cvvnWHbaMsEe+c3gTg== X-Received: by 2002:a5d:5587:: with SMTP id i7mr2686605wrv.314.1593176737524; Fri, 26 Jun 2020 06:05:37 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id u20sm16746904wmc.44.2020.06.26.06.05.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jun 2020 06:05:36 -0700 (PDT) From: Lee Jones To: arnd@arndb.de, gregkh@linuxfoundation.org Subject: [PATCH 07/10] misc: mic: vop: vop_main: Remove set but unused variable 'ret' Date: Fri, 26 Jun 2020 14:05:22 +0100 Message-Id: <20200626130525.389469-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626130525.389469-1-lee.jones@linaro.org> References: <20200626130525.389469-1-lee.jones@linaro.org> MIME-Version: 1.0 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, Sudeep Dutt , Ashutosh Dixit , Christian Borntraeger , Lee Jones , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Hasn't been checked since its conception 2 years ago. Squashes W=1 warning: drivers/misc/mic/vop/vop_main.c: In function ‘_vop_scan_devices’: drivers/misc/mic/vop/vop_main.c:617:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 617 | int ret; | ^~~ Cc: Sudeep Dutt Cc: Ashutosh Dixit Cc: Christian Borntraeger Signed-off-by: Lee Jones Acked-by: Arnd Bergmann --- drivers/misc/mic/vop/vop_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/mic/vop/vop_main.c b/drivers/misc/mic/vop/vop_main.c index 85942f6717c57..4e63cb1360921 100644 --- a/drivers/misc/mic/vop/vop_main.c +++ b/drivers/misc/mic/vop/vop_main.c @@ -614,7 +614,6 @@ static void _vop_scan_devices(void __iomem *dp, struct vop_device *vpdev, struct mic_device_desc __iomem *d; struct mic_device_ctrl __iomem *dc; struct device *dev; - int ret; for (i = sizeof(struct mic_bootparam); i < MIC_DP_SIZE; i += _vop_total_desc_size(d)) { @@ -644,7 +643,7 @@ static void _vop_scan_devices(void __iomem *dp, struct vop_device *vpdev, &dc->config_change); put_device(dev); _vop_handle_config_change(d, i, vpdev); - ret = _vop_remove_device(d, i, vpdev); + _vop_remove_device(d, i, vpdev); if (remove) { iowrite8(0, &dc->config_change); iowrite8(0, &dc->guest_ack);