Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1541555pxb; Wed, 4 Nov 2020 11:42:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFOALpvYbWJojhJlXZIL8hOT149KK/srQg+UvHn7dTGCD2rj7ZZ7DCUV9dfw4MeSHv0i5f X-Received: by 2002:a50:dec5:: with SMTP id d5mr29205205edl.362.1604518920349; Wed, 04 Nov 2020 11:42:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604518920; cv=none; d=google.com; s=arc-20160816; b=FUX6m4+qnIgj+Er1vdRRz32KLTUsTW5UU3n39ALrsQY2xGeD6eAYhAd1kWh0oCDEMc rLrbFLvIs+wxStyOWxHVKLszAUsGjSLRT+fVBMJ4Z3sR/4c5rBxdZchvuthoAgIbha14 axbdhmlYny+TKVjDWyMmvFmLC0YKW8+6kAFKmpk4uWzO0tZVElez77BnMre4GYorQ7Uj 98uPTBbdir4Co/dhZdUBu0a72uO90JXn02dLcle08Pzpd6/FKZP+fqFomFwAW8bqU/9f OfplTTRoDhyaOXuQ0WxQapAhM7v774HlmB3EdJ1X3F8TeFSxmOcgjra8Z/8ZGhE5AUqm hxhg== 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=ZSxXRzc+zaL0uGo9k6iXJbVYPaUkoCobs1az1PbQlMq/frBZ0FaLte7GvsOKpZmQfo gQp/VKm7dvcxdAXc5onL378WA8why0kPVetUuB40yVOn31Bz605Yl722VMEhWVi6CSfV N6swV//3mwGB/23GZECar9FaXclt067asdfTYJSTbXwJVlSdmJosZcLfSlx1WbUOindE NwVQNYDw18mu0cUBGvmAN3f+k8JqSR3rnOlcRV3gabjGCZvWEfotpPiGCRS1lHE4mIvq uWwp5uAj2MYR41HfuVR3u8or7ER1YxcuPcY6wtje0j4NlNeF1JBcqbgHiZM7shQsFqnS +liA== 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-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id o22si2304910edr.480.2020.11.04.11.41.38; Wed, 04 Nov 2020 11:42:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1731890AbgKDThn (ORCPT + 99 others); Wed, 4 Nov 2020 14:37:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731306AbgKDTg3 (ORCPT ); Wed, 4 Nov 2020 14:36:29 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD0DCC040203 for ; Wed, 4 Nov 2020 11:36:28 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id h62so3434188wme.3 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=HDH9K0Va6QZBun7AqzQmsMzeev1W9R9mvCNkwsnWskmqDJBRYO5goLijRxHvxiYh0b cEN6Zrwf0QpO8TLVQSxr2LFxpyYGEf7mFY5TK00+ltbs7lsEJv7zVoOFKEHDWMZBQwgF t5AO5oBglJI7ATWSdPT2WXUar9XQ1t2OjNh+hbxftMpxE6jSmxgA/rqUnPnoP4qs/PE+ fuOl9TKiFWYGsAvOEId9fkXfJTdNE8ydC5/xI51DsJvV7z9c+CFRnL18tplhjK/mAsVb 5Pu/xfHlxWz/STSOkFu46D0vG4MXn4FW9cMS8P3kTDMxZHqxeEIw+ErdtWoG3fn4im8p oiNQ== X-Gm-Message-State: AOAM532emLwJQjMXBODXjG+qExVMHGJXV/cnAUz5kwebnbn/16K44Gjr LCzzvva6m0aZLq9n5rVHAm8buA== 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.25.1