From patchwork Mon Sep 24 01:41:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joshua Abraham X-Patchwork-Id: 10611887 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2648157B for ; Mon, 24 Sep 2018 01:42:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9B4129B60 for ; Mon, 24 Sep 2018 01:42:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BD6E729D59; Mon, 24 Sep 2018 01:42:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D20F29B60 for ; Mon, 24 Sep 2018 01:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727292AbeIXHlX (ORCPT ); Mon, 24 Sep 2018 03:41:23 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40816 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbeIXHlX (ORCPT ); Mon, 24 Sep 2018 03:41:23 -0400 Received: by mail-qt1-f196.google.com with SMTP id e9-v6so7301662qtp.7; Sun, 23 Sep 2018 18:41:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=GdBoOoo9au5nVF9CN0xPwHw/Lenyg8WZDczWEzk6XcU=; b=orFgewGzt0KHxC/lpCk62WCVz4kg/h1Zfk+7QZoRW74iTMpZ3Vn1Bbr384pm1IRzdZ A9l8iLjJ1xU581a713jFEWZVflzU6OMG1IZq8Po/SoEsbsS3QqrThpT1lzJkkCdVvts5 cgsgDYqvjCn/gwuL8I5N8Ee69lTkEDTjdpLJafK4lSnB9GORpq7DyyzXry3YsC9rQ5WB gHavkrBTzaMB+fk6B0sNTrUSuPa/Tw6s+UVQKOjuP/VRI2n6qxOJEhTHHqn9WompaHN1 Rrwd85I8fZvYAWVH7Y0y0yY3NvEiWH0ODNu9zonhE2Ldhkv7voP1n98aoncHHxB0Uamd uAtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=GdBoOoo9au5nVF9CN0xPwHw/Lenyg8WZDczWEzk6XcU=; b=i2ald8Al8Oesj00+fJNMlorT8P087GAks/PYAshi0V9dV6eBdXMsKKBi66a1x0HPzZ DQGR2hTvXBXHXe54HFxT2vnzDY8gezsth+U/EQNefLHEjNcQ7m1vZajUH5vTxiB2Z37J NOi9iZkIuemW5zACjOGXBQ7ynMEKnvYe81WvR8tuwnQFBCH4AR7cGkg8zEthww5FlkHB JyeT5hzm/Dy+sZrGZahHlJ8kP07eSUEeQjtUipDLDAzlITFQwT55sHls1nkOEHLkHQx/ Q9Ebhc0OaCF+unrOvODNNME05j8q3jEyWcWiyWdW/qYg6zpHffILhOWkXPivHWDpwlAg 4RUA== X-Gm-Message-State: ABuFfogX4q8vLwcgILIociBJQGICkFGMgheMog32Pf2buvWs11Jb7wzk QWE2kfLISaEH3cOj4QZNUAo= X-Google-Smtp-Source: ACcGV61rgrWlL476NxV7/l9qrthAbmda6r78OmUxUeFxdbzIban5FjU2tIppbYKj/gRFNJ797NyXcg== X-Received: by 2002:a0c:e2cd:: with SMTP id t13-v6mr5842300qvl.79.1537753298227; Sun, 23 Sep 2018 18:41:38 -0700 (PDT) Received: from josh-ThinkPad-T460s (65-120-91-61.dia.static.qwest.net. [65.120.91.61]) by smtp.gmail.com with ESMTPSA id o7-v6sm17537859qtp.75.2018.09.23.18.41.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 23 Sep 2018 18:41:37 -0700 (PDT) From: Josh Abraham X-Google-Original-From: Josh Abraham Date: Sun, 23 Sep 2018 21:41:35 -0400 To: hminas@synopsys.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, j.abraham1776@gmail.com Subject: [PATCH] usb: dwc2: remove set but unused variable Message-ID: <20180924014135.GA27711@josh-ThinkPad-T460s> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch removes a set but unused variable in hcd.c. Fixes gcc warning: variable ‘data_fifo’ set but not used [-Wunused-but-set-variable] Signed-off-by: Joshua Abraham Acked-by: Minas Harutyunyan --- drivers/usb/dwc2/hcd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 2bd6e6bfc241..5f23b933cafc 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -1328,14 +1328,11 @@ static void dwc2_hc_write_packet(struct dwc2_hsotg *hsotg, u32 remaining_count; u32 byte_count; u32 dword_count; - u32 __iomem *data_fifo; u32 *data_buf = (u32 *)chan->xfer_buf; if (dbg_hc(chan)) dev_vdbg(hsotg->dev, "%s()\n", __func__); - data_fifo = (u32 __iomem *)(hsotg->regs + HCFIFO(chan->hc_num)); - remaining_count = chan->xfer_len - chan->xfer_count; if (remaining_count > chan->max_packet) byte_count = chan->max_packet;