Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp1047183pxy; Sat, 1 May 2021 02:04:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyweOsxsIulQtpNJiwQnczof46XFTLkgL/Q5qfYfYNfKZ8nbvVkIwbnm1rzeZbOew3CVAc8 X-Received: by 2002:a05:6402:31ac:: with SMTP id dj12mr10405203edb.267.1619859890529; Sat, 01 May 2021 02:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619859890; cv=none; d=google.com; s=arc-20160816; b=cbEubcW8MP8T2UchT3m3wei9zMloPuXRXwNOGxB/g1gfpa6eEHQhENms9VWXAwoYka ZZRftUIEQCA/6jVEYPYL35ysHxdi2b1qI2ZK//aM1VsiNA0hJwKiHEK4DrwbuWjOX1Lm k+FU/ZsI+hHPNWHSvnAla+4rQtxhwyNWeasS+BNEtzvq+md99tNxC/Mr74PF5HAk5Zqr yOim/xn/LfNu4MkX9khcYq9ierETZFPhJ4LKCEp/gqZX6QKg/AGdX1izMc2tqB2e9N9W OpJp3f0PE1SozljPmg4fZ2Ztd9WGnncyae6aXh/D5Le/rI2TeigDjn8FiRzq5/A18QPd EA5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=//OsLf8gU/9VWp4E/gtONldzoDSVWoyHb1O3vAf2hr4=; b=mXtur1/LJl8nSOZswtNHekzX/o1lqGhDcs1W1deAuCxmpHtW2GDgFDV74m4D2oP7Fa 9+o7g1MVcFSqH3QCk4wmarjYDxBaTnAgjxKwplTys6+isJpNUOoawaKH7N8HUBGqBLrT 3dyzT1vUfiskeXkBVGPWL1YThbsUW0Dsv0FQq4B7UmrT6VlnzEJ6kSnF/kc3E5vVI84t BJ/Ogq4PaxhRVheRl8Pb/oL0NNiBDp3buVoBYThARI+4924Ke8U+ygVSeA8LTuM1RBi7 kexnaBlSoOVwBiOiAFYkPeE0TYDEuDPFYtNL+KJVyiP6Y1uFfm+HK+AsuqgMuoQZTSO1 AqBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kRHorvM/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si5709059ejc.554.2021.05.01.02.03.51; Sat, 01 May 2021 02:04:50 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b="kRHorvM/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231426AbhEAIsE (ORCPT + 99 others); Sat, 1 May 2021 04:48:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230117AbhEAIsD (ORCPT ); Sat, 1 May 2021 04:48:03 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A9E6C06174A; Sat, 1 May 2021 01:47:14 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id k3-20020a17090ad083b0290155b934a295so2984005pju.2; Sat, 01 May 2021 01:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=//OsLf8gU/9VWp4E/gtONldzoDSVWoyHb1O3vAf2hr4=; b=kRHorvM/R3y9LiE2chDqQilUiSbOWfrP2vlHZwHptLk/jpM1OwRAqBHgwRh4KhjhyT AH7PEtE3Hl12cJ9Oh11Z/6HIWQeb5vew+mroII6n2rxbnpkCqr/nOA3xmoUrNiWJNAEo JM9ZkdKiIov8XrHlt7Wd5sM0m//M9zH9Qnq0Qo3Ftmeya64Uq52OdoCqOrGuAKcsxM10 gmXCKRAZmzSYrl7KqITCd7rRZJdHKHk12B3nT+W5aexNG5Gb1F4eD0N9sMAjJ0Ca/KKy RvqyvlEgphlLOtu3S/VCyguWSUXI2JQ82aiQEVplLvUqR6ehp+485/1RwGjs/v5QA/zI N0FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=//OsLf8gU/9VWp4E/gtONldzoDSVWoyHb1O3vAf2hr4=; b=sEA3fWAln6mq+jARSfL2m7Jg+vYSpG8kbIIcvxA0szSsw6h2Cnia7gF5YzhgTcYt9B A6BFxP+OWYRtMdZ4HV4AX3w65m++hdZCCNNft1g3YQV6DW7IZ6jRs4k394GFdfuLHFcq cQfueqOLpc3jvdoTDG9zXAXAvWt+yoXh6G7DSYjNTMBLN9M7VklL51ekv2ZRgRcLOznh EK0ej2kD/lZbsbwL2ZM5WCJe7jbnLw1BNcHnA6/qL02pNjGhhF4uUbz6GVw7H3snGVv8 076rpTTLYRYJbQKfsFU7HldvLGh4/1mcgqJhBozcpAEEZl1p2B7VqbSV5TCHiVqdBrOn fBiA== X-Gm-Message-State: AOAM531V/ibRRCYVW7wZgNhFNwxtNY5DBZmaJQBf0pogs1rMdRgOsEL/ ZyWx75ZJU3tEO3///gNOBjg= X-Received: by 2002:a17:90a:5885:: with SMTP id j5mr9815184pji.102.1619858833696; Sat, 01 May 2021 01:47:13 -0700 (PDT) Received: from user ([2001:4490:4409:1012:5ea7:af4f:f2d7:caab]) by smtp.gmail.com with ESMTPSA id 3sm3915093pff.132.2021.05.01.01.47.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 May 2021 01:47:13 -0700 (PDT) Date: Sat, 1 May 2021 14:17:03 +0530 From: Saurav Girepunje To: b-liu@ti.com, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] usb: musb: Remove unused function argument Message-ID: <20210501084703.GA57167@user> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused function argument struct dma_controller *dma, struct urb *urb and u32 offset from musb_tx_dma_set_mode_mentor Signed-off-by: Saurav Girepunje --- drivers/usb/musb/musb_host.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/musb_host.c b/drivers/usb/musb/musb_host.c index 8b7d22a0c0fb..14d9b366e605 100644 --- a/drivers/usb/musb/musb_host.c +++ b/drivers/usb/musb/musb_host.c @@ -563,10 +563,9 @@ musb_rx_reinit(struct musb *musb, struct musb_qh *qh, u8 epnum) ep->rx_reinit = 0; } -static void musb_tx_dma_set_mode_mentor(struct dma_controller *dma, - struct musb_hw_ep *hw_ep, struct musb_qh *qh, - struct urb *urb, u32 offset, - u32 *length, u8 *mode) +static void musb_tx_dma_set_mode_mentor(struct musb_hw_ep *hw_ep, + struct musb_qh *qh, + u32 *length, u8 *mode) { struct dma_channel *channel = hw_ep->tx_channel; void __iomem *epio = hw_ep->regs; @@ -630,7 +629,7 @@ static bool musb_tx_dma_program(struct dma_controller *dma, u8 mode; if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) - musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, offset, + musb_tx_dma_set_mode_mentor(hw_ep, qh, &length, &mode); else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset, -- 2.25.1