From patchwork Fri May 11 11:17:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 135532 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp730656lji; Fri, 11 May 2018 04:20:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZreWpPlECm4F2RCjaJKG2SUGusR0UH+/7PZg43K8nVuGFkAY1slJfMXq+DQCUe2/xQdW7/z X-Received: by 2002:a17:902:70c9:: with SMTP id l9-v6mr5073752plt.382.1526037602357; Fri, 11 May 2018 04:20:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526037602; cv=none; d=google.com; s=arc-20160816; b=bQzloahxdAcCHSPxjmfpcX1zCh9mMrXXSyKv1ek3Cz4hul4Pmzl4L14MHPAz+ZQIUu qattXvTe+WAobQrqpG/8jXfMd5ALhLLFYbnvRMkarl6y5/PbKHxyyzksmX7tYf0liFYX 2x14n7/TskHLzvoMqJTuxDDnvaOtyC064QxjtqEm23E1MMTKrzVxjsNBLbq6PS3KEXPa PoyerDcpZsgvzJVPaAzX7zFnu308BnqOCLoCwzchdQmDzmokBG/k7sUqn9gPUmNSU15m vvIY8cBQGh6kxjQ5xNnAh7VPvv70atYl6KGfusuCU6E79OAzn802QZIHQbrZ522nO7Ws 0MZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Gvdv8c0jstww6fIwzmXV+em8qrnA7NpGMFs/d/h5h1U=; b=aKrpg7VjPovSCziyen525ZqWxdL5D0pyWfhe4Jqpk4BTdlpYNTukRZAsg5tg0MIpTQ C+9w14Rs3GjTrNInk46iY8f86YhCrntZBgWYUvOjIMfYxWxoIgFn0mH9/6mtAx6wFXmv G8py9FKZY2lE2awapqSBhJupWSZ63Mz77hVpLIrqYE+CXvQhC+AstRZ9bHTpxW5JoKlK cQVqpmSPYZR3IhGzihUd8mZ1W/UqJUFngCKw9pXAc9Ilu1x9zymrh/xUyqgBbl5Qtxau hKO7wbQqY6BW7B9zl39QHjLTpTdeBMt6vMJZT8clkfDBpiwzYQgN/B5+YZp2ivomc+iS 8AlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z8ULBRoU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4-v6si2394440pgq.603.2018.05.11.04.20.02; Fri, 11 May 2018 04:20:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z8ULBRoU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753234AbeEKLUA (ORCPT + 29 others); Fri, 11 May 2018 07:20:00 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44723 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750852AbeEKLT5 (ORCPT ); Fri, 11 May 2018 07:19:57 -0400 Received: by mail-wr0-f195.google.com with SMTP id y15-v6so4961529wrg.11 for ; Fri, 11 May 2018 04:19:56 -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; bh=Gvdv8c0jstww6fIwzmXV+em8qrnA7NpGMFs/d/h5h1U=; b=Z8ULBRoUsdMugF4tNnxxm0Gss8m29HzLf6uF7ZtQCLJhFY9XwyA1sfWSZSLqOxkRJu /g0LJvP5AF5Nh5p6Tg1iOUWCa+sTPpz+H4Hat5g7ktb8uMvbilvDUAahif4yUV9Am0j4 gDQua2IhwLbi4DHW/FTtgmc5CQwYPyet3ubbk= 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; bh=Gvdv8c0jstww6fIwzmXV+em8qrnA7NpGMFs/d/h5h1U=; b=CJ9d+HzFrW03xO6//AfFKFv6IDUoM2X2TLW2wJ4apL8OX5zJfzRH3FZQ804hriWTco tajHN5jmikDPAsG1b4hs5b/vUEgsIjpJug3qvymj2CdHil5OACc8pAIGZI3Ey42z/8tI SyRY0O2U+0oYTTGs/tAr5i1nJO2ZQ65D3Uyd8X1kGB1yCIlHeDZOKZbEafkpJTeq+52W bDmfYozQnBuMdQoQSqKPPnrbI+83cDdczGWdxK/sMKM01BGYRR+vS4njid5XIzcUiqU6 sS8Cpk0CZCKxMl8pydefOEw3mmbLJSci3u6KyX+CLN9qxeMFX9K4iCMR0PF264yjyE2u wpyw== X-Gm-Message-State: ALKqPwd/bvuzm7m1UZ7shXz00DnzzSpoI02drkFRiPFjwdeiCMY2paRA AWKfpSpt9na9xum6+Avh6IOaDg== X-Received: by 2002:adf:d4c8:: with SMTP id w8-v6mr4618471wrk.8.1526037596323; Fri, 11 May 2018 04:19:56 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id 16-v6sm4245672wrt.20.2018.05.11.04.19.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 11 May 2018 04:19:55 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, srinivas.kandagatla@linaro.org Subject: [PATCH] slimbus: qcom: remove unused variable Date: Fri, 11 May 2018 12:17:44 +0100 Message-Id: <20180511111744.12465-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below warning when driver is compiled with W=1 qcom-ctrl.c: In function 'qcom_slim_rxwq': qcom-ctrl.c:442:13: warning: variable 'len' set but not used [-Wunused-but-set-variable] len seems to be unused in this function, so remove it. Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.16.2 diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c index ffb46f915334..bb36a8fbc9b1 100644 --- a/drivers/slimbus/qcom-ctrl.c +++ b/drivers/slimbus/qcom-ctrl.c @@ -439,13 +439,12 @@ static int slim_get_current_rxbuf(struct qcom_slim_ctrl *ctrl, void *buf) static void qcom_slim_rxwq(struct work_struct *work) { u8 buf[SLIM_MSGQ_BUF_LEN]; - u8 mc, mt, len; + u8 mc, mt; int ret; struct qcom_slim_ctrl *ctrl = container_of(work, struct qcom_slim_ctrl, wd); while ((slim_get_current_rxbuf(ctrl, buf)) != -ENODATA) { - len = SLIM_HEADER_GET_RL(buf[0]); mt = SLIM_HEADER_GET_MT(buf[0]); mc = SLIM_HEADER_GET_MC(buf[1]); if (mt == SLIM_MSG_MT_CORE &&