Message ID | 20201103152838.1290217-3-lee.jones@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=9aBr=EJ=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26424C2D0A3 for <linux-arm-kernel@archiver.kernel.org>; Tue, 3 Nov 2020 15:32:49 +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 8FBA220757 for <linux-arm-kernel@archiver.kernel.org>; Tue, 3 Nov 2020 15:32:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JqkH3wlm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eMhOrS8i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8FBA220757 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+linux-arm-kernel=archiver.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=2IgjgHOr+Jfc1mCH0yMuZXKdtJuTVp+nerX9S/NVvJ8=; b=JqkH3wlmifCFf9UaGoor21wVp O+l5xNXZO7rieOT+nFPV1kCx2ozCpcAvoYjQQ1n3mF9eung9t+6O6Nbietn3TUvvf1Hh/bbmqsdA3 hSOFzMjqriLnXzwrrLx742cgwYqLE3avX3+V6P6Ts+MCIvh1mK1baRrlJNQPomkbL+RGCWrqaprbr LI9fI/SG/ukkWfnMG9tsOPo6QP1C2/qYvW6FWrcAz18ZpBoHMFsN4HAHG3rxBmRjbC3ePP6BGXcZX LMQDIToKPvuwy1o6Bv8PNNtytrAsdIHBvqxCrEqn7EVf6bzpkEHUkHixvIpg4Od5Cs0bDjXVAXdxe TI++4iIGw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyFx-00021L-EU; Tue, 03 Nov 2020 15:30:00 +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 1kZyFG-0001h9-Jd for linux-arm-kernel@lists.infradead.org; Tue, 03 Nov 2020 15:29:16 +0000 Received: by mail-wr1-x444.google.com with SMTP id y12so18996101wrp.6 for <linux-arm-kernel@lists.infradead.org>; Tue, 03 Nov 2020 07:29:13 -0800 (PST) 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=zy9kvgUXs/WPiYKzqvxC32aSPHbLNGyZHTHYNq/v11c=; b=eMhOrS8i+lVW1jzQLtrtzjA4g8AI7gCkFG0NYQ1En62uDk8769Ni9OGWuNzARl+sH5 C05u/onYjGMuEqCURs1Ez3eH8beNmL5OZDkO83kq+x1oAMrODLUcabO6fnski3vAlGO6 m9sEoI67smeYYnzmNz6QDZ8DW6rb8jjvURTz0up5I8A4RNM5bbmVOaH8LcBuAovVerqA GOjyoyWYC97JbtSxqqjZ4NR4jHkt0+mTY4km5avSVu15tpk2NHQK8K8migj4l48FBqVH Bb/tVPmCVrp49g8auokkn6gfX3ITL+WfHpTFCC4NKqBcLxg5+1KJadn+Js++HdBMyh0M r9nA== 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=zy9kvgUXs/WPiYKzqvxC32aSPHbLNGyZHTHYNq/v11c=; b=lvOEDz7Tq3Bq1TDpl8Oqsw+NZJlSKR+fCaPBk0UBO+o9MnuKNupSac7U7Zi4LlAR80 dt8QXGz5pym+qIke1U05BpP5yrn+ACd2N4TDb1S4CNExVFuBcES943Rl+QymAATBl0/w 3ojaITM9KbkmtgEcLNb5GGzyJSVJ8szxfmb8V3LtYwI4SqNmRdGzXC9bBmN7rbPqCIoD mCBw/b5kAHevVpQiADzmJKWjC4X9d+ZuQRZQkrenGLSQ6rZlAdPNswau97Bzn3l+SEpL hs3EM6J/VjFNCR5qcLaLsnyAPbgwWkeUX7qo192uaxEXtPGOEf5LJU62E/uCQi3O455u r8Cg== X-Gm-Message-State: AOAM532Ldq9xeqP913P8U74xdKKAwanj2Yvp5ZIA2TtfJrJ9eLUCXXoV EFj/ouomay2tZz1ZGqjk7+Mtyg== X-Google-Smtp-Source: ABdhPJy1tik0u1PCJKipwjUPaAlnCTpcl4xx8dB4MnHlJvvyMldQ/bfvYWoBOq4BzOGK8XRJ0BEnIw== X-Received: by 2002:a5d:474f:: with SMTP id o15mr210269wrs.377.1604417352772; Tue, 03 Nov 2020 07:29:12 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:12 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 02/25] soc: qcom: qcom_aoss: Remove set but unused variable 'tlen' Date: Tue, 3 Nov 2020 15:28:15 +0000 Message-Id: <20201103152838.1290217-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201103_102914_726633_5CFCA7E3 X-CRM114-Status: GOOD ( 14.77 ) 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: linux-arm-msm@vger.kernel.org, Andy Gross <agross@kernel.org>, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bjorn Andersson <bjorn.andersson@linaro.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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Rid W=1 warnings in SoC
|
expand
|
diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index ed2c687c16b31..83589756cb1f0 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -225,7 +225,6 @@ static bool qmp_message_empty(struct qmp *qmp) static int qmp_send(struct qmp *qmp, const void *data, size_t len) { long time_left; - size_t tlen; int ret; if (WARN_ON(len + sizeof(u32) > qmp->size)) @@ -242,7 +241,7 @@ static int qmp_send(struct qmp *qmp, const void *data, size_t len) writel(len, qmp->msgram + qmp->offset); /* Read back len to confirm data written in message RAM */ - tlen = readl(qmp->msgram + qmp->offset); + readl(qmp->msgram + qmp->offset); qmp_kick(qmp); time_left = wait_event_interruptible_timeout(qmp->event,
Fixes the following W=1 kernel build warning(s): drivers/soc/qcom/qcom_aoss.c: In function ‘qmp_send’: drivers/soc/qcom/qcom_aoss.c:228:9: warning: variable ‘tlen’ set but not used [-Wunused-but-set-variable] Cc: Andy Gross <agross@kernel.org> Cc: Bjorn Andersson <bjorn.andersson@linaro.org> Cc: linux-arm-msm@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/soc/qcom/qcom_aoss.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)