Message ID | 20200630135110.2236389-19-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=CTHU=AL=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> 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 5A34613B6 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 30 Jun 2020 13:56:35 +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 ED55520780 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 30 Jun 2020 13:56:34 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jEf8itn3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BjQ5sEe1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ED55520780 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=ErCnsACbyIAhgiYJkxAPy3G/1AWAE11xRCdR2s4lV2Q=; b=jEf8itn3q+HA+HbeE+lcua+vg FTf16hm1qwvkbVahwZQuF+vQOrp6BZMlswHFeb9DjT7hdUG8/B//ZMN0q1M2nG5eiqt3pk4VJKhgV xT5v5sTlqsBKnHybL0DQPY4N6mf411/Nb19fOy1yVdSfiJc6p8Ua/dpD+SfJOb63YIkhD8vppqvTC Bn7tvBqf7afyrd2m02mTXCR3vynKgoQINQNFqYv4bq23TPEVmms5cnH3rgvxn/fVHPVbGYzLrXKvI XJOx6pHChJc8grcFsa2sf/QvJIKu2JWqdcmQ70IHyzovmXg14orq0t5ePDbdHR6vOnAFlRoHF8RMm /H/YiHocA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqGiR-0002uL-Fg; Tue, 30 Jun 2020 13:54:27 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqGfe-0001G7-IZ for linux-arm-kernel@lists.infradead.org; Tue, 30 Jun 2020 13:51:36 +0000 Received: by mail-wr1-x444.google.com with SMTP id z15so9005508wrl.8 for <linux-arm-kernel@lists.infradead.org>; Tue, 30 Jun 2020 06:51:34 -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=g8/OUfoNrwMRghF2Xm56r8amPV/zzR8eJyRX/3dxUYA=; b=BjQ5sEe1VUAWTyNZ9XCItu/X9mKXJ4kknIGy/dde60ssxdqPtrClkggPQn61sQFEbG ZUl/ATV6/LFDcAgqoPPcLSkAboYweOHujXM1A5aKjPVBj7Ey/vvrUbmwspN3CgjiX4XL uwtDzStDFzZSD08soxa7wHv3g/K/Irn5cBopE8MRlfY2fifczF1z9Qaa+QJUV30gBkrs o7NiVh+ah6uS2kdMqKwC+173SkiLajl5xtvRPO0lk/yDTw2bdI3hoMMgdKuMxQSiNNof KyQCmMWv9CY76fq7cqJIEhGstnyIIWy2OTk8+E5hvmDKKg7UnIWox7KMDxkAJ6RZLCRy 4+2g== 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=g8/OUfoNrwMRghF2Xm56r8amPV/zzR8eJyRX/3dxUYA=; b=DW1PxrTA5PFXF9jaB6sXeu2LZ9W7cRyD1O7GVzk9E5ENm5DiXEEWXoeyjFyM9UmzLc GEfWxJznYrIpxkIJ8RtLuqKyNEVNB8t4fzZNLlhNlb6LflpfToh4O08uPSZMhjGybjor qX5tb0rr8kqM1FWmczRnNFO6PgXe+MQHJoSDvkMRL4HdgkziH3Tydo0UFB7rQkKRg/6L RFKeyCF/5NQZnZ9NOf2dDWS8erAaI3JUFlcm0Qxb2sUgzuqjlWgfZdZ5WI/2CUONlM/z o/ZeNb9gGslar14mJj9jpl2rD9T6sH5gHOsa/bowNM1lBbe24sZK5w+szI7NCdi/1VZo 1J2g== X-Gm-Message-State: AOAM531+w73K3gORKgnEFvTa+GScfI2K7TLOI/cRnM8osuw/xDm2NaQD 3RIfkzLTvNWBfZE/YgNnC13OgGrM+wY= X-Google-Smtp-Source: ABdhPJyIQqjsDwJKis+cJUwdYmBjCkdXP25GxIOWJOEk9ecH3aDPL+QaOTZCX36CbfPBbD5MpTV9yw== X-Received: by 2002:adf:e948:: with SMTP id m8mr22555359wrn.398.1593525093406; Tue, 30 Jun 2020 06:51:33 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id t4sm3876746wmf.4.2020.06.30.06.51.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 06:51:32 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: arnd@arndb.de, gregkh@linuxfoundation.org Subject: [PATCH 18/30] misc: mic: scif: scif_api: Remove set but unused variable 'read_size' Date: Tue, 30 Jun 2020 14:50:58 +0100 Message-Id: <20200630135110.2236389-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200630135110.2236389-1-lee.jones@linaro.org> References: <20200630135110.2236389-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:444 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Lee Jones <lee.jones@linaro.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
Last batch of patches to clean up Misc
|
expand
|
diff --git a/drivers/misc/mic/scif/scif_api.c b/drivers/misc/mic/scif/scif_api.c index 781217c030a63..d7faffdd87e92 100644 --- a/drivers/misc/mic/scif/scif_api.c +++ b/drivers/misc/mic/scif/scif_api.c @@ -997,7 +997,6 @@ static int _scif_send(scif_epd_t epd, void *msg, int len, int flags) static int _scif_recv(scif_epd_t epd, void *msg, int len, int flags) { - int read_size; struct scif_endpt *ep = (struct scif_endpt *)epd; struct scifmsg notif_msg; int curr_recv_len = 0, remaining_len = len, read_count; @@ -1017,8 +1016,7 @@ static int _scif_recv(scif_epd_t epd, void *msg, int len, int flags) * important for the Non Blocking case. */ curr_recv_len = min(remaining_len, read_count); - read_size = scif_rb_get_next(&qp->inbound_q, - msg, curr_recv_len); + scif_rb_get_next(&qp->inbound_q, msg, curr_recv_len); if (ep->state == SCIFEP_CONNECTED) { /* * Update the read pointer only if the endpoint
'read_size' appears to have been assigned, but never used since the SCIF messaging and node enumeration APIs were introduced in 2015. Makes sense to simply remove it. Fixes the following W=1 warning: drivers/misc/mic/scif/scif_api.c: In function ‘_scif_recv’: drivers/misc/mic/scif/scif_api.c:1000:6: warning: variable ‘read_size’ set but not used [-Wunused-but-set-variable] 1000 | int read_size; | ^~~~~~~~~ Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/misc/mic/scif/scif_api.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)