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: 317911 Return-Path: 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,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable 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 6575EC4742C for ; Wed, 4 Nov 2020 19:37:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0A86520679 for ; Wed, 4 Nov 2020 19:37:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="p7liMTCG" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731260AbgKDTg3 (ORCPT ); Wed, 4 Nov 2020 14:36:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731281AbgKDTg3 (ORCPT ); Wed, 4 Nov 2020 14:36:29 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB247C061A4D for ; Wed, 4 Nov 2020 11:36:28 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id 23so2545650wmg.1 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=RDgLvsNdXOId6UZFOyNkqijDkuK94XKfmGoW6vvs6ZXfj0aL5+h12oxgnmJRpl1Qa6 pwXlSetJPbqtXwcZ8brwaXzh2IKqdEkMnTQcY5wve/LWg2SIVy/er+0Yhy1DDGYqj3y9 R1IVRkmTNAzsUJ4oIOPm8RmpoT8QtAARLrtLbIbW/jm1Z8EcMafaCQOEVcOunDpe4V8O L/9M+0ezCBHRYBKJsmNP5AiPXnxLqDC8D1MMQQ7BsOpffs2D0t80pkKXY/oV8PDbWt9Q ae95lD2migU01vwdhfW45T310kHjiy3Q4nZK6F7hhkZmJjaHT6M9wi+T1ZgJZB4Yc2tC lK4w== X-Gm-Message-State: AOAM531jXIWPiibI3xKTKixY/ZAwiw40p/u+FHZgXE/sJl5gDt3NB8+k a5QE2BYh1UCA8EldDUjCdh7WvQ== X-Google-Smtp-Source: ABdhPJwis0JJgtZ+lHi7Jy0xdXZWOM0yCqCPZvE1DmD9xUZV9MOkjgMPToCuLIiSif2j3dhE5XCBhA== 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-arm-msm@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 Reviewed-by: Jeffrey Hugo --- 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);