From patchwork Wed Nov 4 19:35:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320569 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp5698251ilc; Wed, 4 Nov 2020 11:36:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNboDAU+UfgpX7IqlurKwm6+uGMv7eqouoRM+2JdpABh797pygGsAOUx1O5C+ZFC3klKOb X-Received: by 2002:a17:906:4cca:: with SMTP id q10mr571111ejt.181.1604518590630; Wed, 04 Nov 2020 11:36:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518590; cv=none; d=google.com; s=arc-20160816; b=E7EJSHerBCmWwJ3dRW7Fbmkky3/VkN7sQXhE815KvVMcGhQmOrwnzIKo529Q1HdTEi 3mBbTN3irp0E89w+IBK3yl3/jB8bi/ZchmKUTmk2hlSZNLUpQiS8QfcGRb2OyLXBLZy7 odsoLpbDsiZ34czdEXokOQgKiXQVy2AH6egoYs16b6KufbKV704NF3KaRORaLxxGedG3 MN6A9hDBc5Vusg6gtaYwMMYppP0p0cfO1xr2MsGjakMRBmWspY//CkNqa3G4Y5w5uODe qZb8kakczNZiIFp1jxknZsRUwXBzT28E7ogvhnXHo5gqiV23rrE3COKXBIAd1BGC8GEx Ds2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=G/d/JA64CofWKuwESK8kGZX0uiDeowkGXadKVAnwo0c=; b=cua2jdTZ+SP0ix+z5Mg755hIU09LCUcImhevO1UcrL0Xhgw/4vz6UY1/22KXVmAAzO Cni/byjutYfa3UZ3oQ/FOLKJR6MmgDlMbD6VDj7cfN5YfCzwpoiJ/wpY7KgPaeIzF077 wh6hx1xEyo8zIVwsoSkxYvcbIXstpA6V3/fU05nWr/izBEuQNwq5bqn2FHJi5Nu9GAn4 N8hLnEKJYZRDWcudEvGYaKGRtkpIGhkPfd/cNCYQbM1jQRpRy0GnP/zusJN4am985y2P N4zZu76UhiqAm/sbZl36zAKRFoZjb6NkO9Rv5t7bSmEcVH09+E3WFfpOEP52TC1cM8Ez jeVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p7liMTCG; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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. [23.128.96.18]) by mx.google.com with ESMTP id q26si2019418ejb.105.2020.11.04.11.36.30; Wed, 04 Nov 2020 11:36:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p7liMTCG; spf=pass (google.com: domain of linux-serial-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-serial-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 S1731339AbgKDTg3 (ORCPT + 2 others); Wed, 4 Nov 2020 14:36:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731283AbgKDTg3 (ORCPT ); Wed, 4 Nov 2020 14:36:29 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3EFC040201 for ; Wed, 4 Nov 2020 11:36:28 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id p19so2556565wmg.0 for ; Wed, 04 Nov 2020 11:36:28 -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=G/d/JA64CofWKuwESK8kGZX0uiDeowkGXadKVAnwo0c=; b=p7liMTCG1mLEWq/DKidLWgjNnOJKKwuTWcMv0KT6XCWEQ6mqWorLIKcFwmXjwYSwYR pufeisJvFXX7BesNLGZMehzMFIzDSfamBBW0lash/5ccGK1ZfP3v8EUeIAUIFY5FCIw5 nL8CdyXDQNvyOYaDDkvDTI2OrgXsCygs0nhWVKEl7ge7xZuULfHjJX08RBS1Qg2V9JKo hkTHEIKiOl80XiTYG9GAegV5C+V77Nk14gTIDOQrUMhgakn5xLxe/9KqWxKoFrMPvooX l5nGRgrGJ0hgtiqhFZ4hI+xiClHWte29GGYd4mKSFXJLHsacQftIfINr/mY8KbaTWcCq vBrw== 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=G/d/JA64CofWKuwESK8kGZX0uiDeowkGXadKVAnwo0c=; b=MBudXj/V2pt0ioSWkosGuDooRvV+dFfqSuWAXRv6VDaLMob7FR4jkKS9azOQDXdoj3 qDZDCRv5a3r5J1itqgXm1m+ICrfR2ULn5Vi3EWvFDJbgqS6TDQb75h+cHo+RRkU4K1rK 0JRJLF0Y75g0EtfiZxsvSm9sM4MfBRf/pxy7xVaoPnDeI5lmkzbyuV23SHVdhqOP5bfk aL49YQTcnHLxuRpT8E8JcHiSXsKBfyqMe3UZoaoa3rUolUIp0THJvjOZHTu3vB/jPtX+ JcQlGqLChUd6Sdcy8ErKYNZWEVbKPHqpTvIdWZdkDcuu/6/CNxJkbr1UGUz5NLd7jxXs QfnA== X-Gm-Message-State: AOAM533UYRMGSUjKEfN60BAWvXb6D8Dlzt9RjMhZPF6Lovbvl4sjFvnR ccRvHjU/y6OJtqFCPOJeHgvB3A== X-Received: by 2002:a1c:e90e:: with SMTP id q14mr5957290wmc.64.1604518587505; Wed, 04 Nov 2020 11:36:27 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id x10sm4034444wrp.62.2020.11.04.11.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 11:36:26 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Greg Kroah-Hartman , Jiri Slaby , Robert Love , linux-arm-msm@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH 20/36] tty: serial: msm_serial: Remove set but unused variable 'status' Date: Wed, 4 Nov 2020 19:35:33 +0000 Message-Id: <20201104193549.4026187-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201104193549.4026187-1-lee.jones@linaro.org> References: <20201104193549.4026187-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/tty/serial/msm_serial.c: In function ‘msm_complete_tx_dma’: drivers/tty/serial/msm_serial.c:429:18: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] Cc: Andy Gross Cc: Bjorn Andersson Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Robert Love Cc: linux-arm-msm@vger.kernel.org Cc: linux-serial@vger.kernel.org Signed-off-by: Lee Jones --- drivers/tty/serial/msm_serial.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Jeffrey Hugo diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 87f005e5d2aff..ec31a809644a5 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c @@ -426,7 +426,6 @@ static void msm_complete_tx_dma(void *args) struct circ_buf *xmit = &port->state->xmit; struct msm_dma *dma = &msm_port->tx_dma; struct dma_tx_state state; - enum dma_status status; unsigned long flags; unsigned int count; u32 val; @@ -437,7 +436,7 @@ static void msm_complete_tx_dma(void *args) if (!dma->count) goto done; - status = dmaengine_tx_status(dma->chan, dma->cookie, &state); + dmaengine_tx_status(dma->chan, dma->cookie, &state); dma_unmap_single(port->dev, dma->phys, dma->count, dma->dir);