Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1650567ybi; Thu, 20 Jun 2019 01:14:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV1uHHDt6ICgjK2Aji8Ns6rBboJ3fdEfF0IKxcneSmVZEa86TFyvsUaS3tEpvHTt5sBsfj X-Received: by 2002:a17:902:6903:: with SMTP id j3mr47923459plk.247.1561018448303; Thu, 20 Jun 2019 01:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561018448; cv=none; d=google.com; s=arc-20160816; b=0LkanCKNV4ieFKYwSL50RLa2FSn62h7FUIiVRR8P6Nv+PN0WzHamsDMoJbG0lBsztj uOSWUdgZfkU2+E7+X8LBJUZ/4UDqtjcmOyechwgxZZmzSApcljvBopR7SlZo2095gCXH 90EwkKv67dqxrrQgUdrae9zv87TcEc+8rzRPl0xujmqMzXZCjFCOUiGx2L+6C3G0PaJh YH0/sWRsUp1qu5VfaHR6Yiqfi3vuXPWib04LZLFDMdk1LqF4xJG/2DzTjmCmT/Dpv+w2 B+PiUznDSAlDz454C/fZeEkH+ZIqdESykQEbW4nZ8JqpP6ilppJLETvxnNwWHKkUvN3e BVgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=wYzBwmL0gAurt+vSz8OtYrRAK5RMzLCeN8yTEYJA9PM=; b=gW9afkg5QB2sCL+LH7doZyO2aNDV1nF5qvyWTIhkYcPALSOK6Rpm4SuIWqRWd0cDMG XXKY7lLF+d5bFVrCgsCt+rGGTru6zZeBaLv0xfFKXW7pMUIJMehOfMmj8Rvmr1Xeif0D /vDWIiDLczZBcyx5q1J5XARsrQfR25wz3F0abq7xG1Npaq51D+t0dfUTlBNLzN5mFhG1 KlpcFCpUFDcTcdHg0GZTmuuf4V5ah9ZSOrh7l2WX149sZFYqyrvlSc9scRRW/2wtGtHr iM6R3h1qwOVci3IgvWKIZDRibT50OYSDHlJbiCTPPjXJo1KGkxKyoV1K/rJcRvrATb2U vI0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j124si18786330pfb.151.2019.06.20.01.13.53; Thu, 20 Jun 2019 01:14:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731342AbfFTIMs (ORCPT + 99 others); Thu, 20 Jun 2019 04:12:48 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:25389 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725925AbfFTIMp (ORCPT ); Thu, 20 Jun 2019 04:12:45 -0400 X-UUID: b566a0946ec84570b984f1c3fe670ffa-20190620 X-UUID: b566a0946ec84570b984f1c3fe670ffa-20190620 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1645524193; Thu, 20 Jun 2019 16:12:39 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 20 Jun 2019 16:12:36 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 20 Jun 2019 16:12:35 +0800 From: Chunfeng Yun To: Felipe Balbi CC: Greg Kroah-Hartman , Matthias Brugger , Chunfeng Yun , , , , , Subject: [PATCH] usb: dwc3: remove unused @lock member of dwc3_ep struct Date: Thu, 20 Jun 2019 16:12:31 +0800 Message-ID: <342af01a252a9ef9457a6a6ec653a40698058fbc.1561018149.git.chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The member @lock of dwc2_ep struct is only initialized, and not used elsewhere, so remove it. Signed-off-by: Chunfeng Yun --- drivers/usb/dwc3/core.h | 2 -- drivers/usb/dwc3/gadget.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index f19cbeb01087..72d28cb14bdf 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -649,7 +649,6 @@ struct dwc3_event_buffer { * @cancelled_list: list of cancelled requests for this endpoint * @pending_list: list of pending requests for this endpoint * @started_list: list of started requests on this endpoint - * @lock: spinlock for endpoint request queue traversal * @regs: pointer to first endpoint register * @trb_pool: array of transaction buffers * @trb_pool_dma: dma address of @trb_pool @@ -677,7 +676,6 @@ struct dwc3_ep { struct list_head pending_list; struct list_head started_list; - spinlock_t lock; void __iomem *regs; struct dwc3_trb *trb_pool; diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index d67655384eb2..7f75da30caba 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2251,8 +2251,6 @@ static int dwc3_gadget_init_endpoint(struct dwc3 *dwc, u8 epnum) dep->endpoint.comp_desc = NULL; } - spin_lock_init(&dep->lock); - if (num == 0) ret = dwc3_gadget_init_control_endpoint(dep); else if (direction) -- 2.21.0