Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1715433lqb; Sun, 26 May 2024 13:59:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUV85iBL9RfoCnT+SZZaZb+DosXHP++Lv08WPRYCL35QDrTleVcGYNzMpLW3LTTgWHvDp+iax9sv/zKcJTMNtJtW3ZxgLn5i2nefEMmDA== X-Google-Smtp-Source: AGHT+IECnJuUT6IkzsLWE4FC6d+VmALLC+R3ALKkPRVrcnEzwY/dfsenPci1G+9WbiUiq6iUl/gU X-Received: by 2002:a81:52d7:0:b0:61e:a3a:2538 with SMTP id 00721157ae682-62a08d8e423mr77982087b3.18.1716757189550; Sun, 26 May 2024 13:59:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716757189; cv=pass; d=google.com; s=arc-20160816; b=F19FmgLT1gbSI9n8Omh8j8tNpaO6BE5UzdlR4X68sWEcyu6X5CcKKZqLReZtmSDxbD 5H+5kE13j0cBra/bvv8ahCfAib2qVbMXKsWmEeM+TbOHDlkUZPZPcUDD+5A4+zwdcmDt SUpzIXC90e2tHIZ7128HKfVakjyF5dQpGvt3+V9AH4hW/cxm2Sgzz/3Xv6G7oUP5b4nu u8uKvl1Q535SJm/8Frerboee40lWtAqyBbSspMrrfR0SQSKyhmG7awR3dwc9RtdTj9ej 0i8C6J0jf1IytfnCJvLjQYltQhy0hlVE3djZgQj4m/tB4XWu0dPKAJKgBjHRKttPebLh rZMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=W9PU7BCcJXDnlcu7PSCv78S1l1Ocn4NX2Nr+M4p6vgA=; fh=NlCW3GWppkJafEHdZffg9344EE9hNd/9tDi95UQCqX8=; b=POGeIevXDeSgn+pI4dlGpOaswVNsH51cDBxfEiyy4+Bv90v5aEf53sCbt2S9KVToPL GJ5mVKJ54TxLO7bSdLy9W8PMgUBF5AImAohlIOgGBfy219a71ewz5uKGatvUTJhgZFTR 3trGB8DmpRXiV3LOsPoD88gL8RqdsnTL+lsQIyyHbohY39OMznnC3MPSZXnynPRvlfx4 zRZpB0xWYIL3XV9xne3ro6vgR2a5Pd8heT6FQR2TKcMsVws2Kd//urw5MPUlWPbxNQA2 1U/N1TU90HpvOO30xDoFe5j0JZHLU4inB+bEcxwzYH+YGAq4N6dzqGODm7kTWvoZkXDs c4Dw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=dyb3hzOe; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-189873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac06f4f38bsi67110586d6.63.2024.05.26.13.59.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 13:59:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=dyb3hzOe; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-189873-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189873-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 253A51C20C9B for ; Sun, 26 May 2024 20:59:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0090513A268; Sun, 26 May 2024 20:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="dyb3hzOe" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7F075139D12; Sun, 26 May 2024 20:59:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716757178; cv=none; b=WbkSu79AjjN8Xl4EYUICfI60VGxvyLnIyCNC+z0aAxr0zdi0BHJaQ3K1IY5VFJnUBCo0tJL6agkl6yGi8FEv3bTbePJ2pezyxN7cBOluusgNhyy6WxDbrgQMSqAr6EhpwDteoDuUoYr5OXL7iUH/hXc3L0Q1r/UUhg7dJq5Zpbk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716757178; c=relaxed/simple; bh=0NV0NiIU/HwJhgiikDfkIFbTT3lXlGerI9bUAof39b8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aouNcIs6rCznaJ6ia2sEhEpiJ0yhnJFBMQdJ8gnkuYFiAxrorYQ5FJKkpiY7w523Yp9N1WTJ2/Fro7nvsUghz6gO45WKGGInBkluMtA2IGMiph4QqBzQClrp30o/KkGsR6OBVi6BgPTpJ55fKLUgdUsPChNk0NKbZ+5L7C2pcPQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=dyb3hzOe; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=W9PU7BCcJXDnlcu7PSCv78S1l1Ocn4NX2Nr+M4p6vgA=; b=dyb3hzOecrWOsx12 71czfo3kbJbegJc/DBKyknQ44vBrmhkU5VluU7whtYA3J9s9p6AN0NB3LHq3fqZTiD0sZwlXpY5k8 7bLfI/TKpYOFzp+3ZnmBR1Iw80VxELwezsi+e7odRpEUV8WdBpRi8UrXtDjyrchx+23BsrjXcMpwX +ICj7RmK7xh3QSNcRoInEy5O0JSIAzIKpZmUbGrOF5oSw2+ZOwORFeX7/HHx7w4t9G0Nybm0UK+q0 3xQ9L7VsmWzLpWQAA4EmbY8cAUpKs+bPSNNk9ruZZcFxxdGVb/izQdJhR5upAr3KWqoY2eZlOU9yt J5a6NTALd2+y+dAQIA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sBKxg-002bNb-12; Sun, 26 May 2024 20:59:24 +0000 From: linux@treblig.org To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, woojung.huh@microchip.com, UNGLinuxDriver@microchip.com, steve.glendinning@shawell.net Cc: linux-usb@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] net: usb: remove unused structs 'usb_context' Date: Sun, 26 May 2024 21:59:22 +0100 Message-ID: <20240526205922.176578-1-linux@treblig.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" Both lan78xx and smsc75xx have a 'usb_context' struct which is unused, since their original commits. Remove them. Signed-off-by: Dr. David Alan Gilbert --- drivers/net/usb/lan78xx.c | 5 ----- drivers/net/usb/smsc75xx.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 5a2c38b63012..7a5cc49ebec6 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -380,11 +380,6 @@ struct skb_data { /* skb->cb is one of these */ int num_of_packet; }; -struct usb_context { - struct usb_ctrlrequest req; - struct lan78xx_net *dev; -}; - #define EVENT_TX_HALT 0 #define EVENT_RX_HALT 1 #define EVENT_RX_MEMORY 2 diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 0726e18bee6f..78c821349f48 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c @@ -61,11 +61,6 @@ struct smsc75xx_priv { u8 suspend_flags; }; -struct usb_context { - struct usb_ctrlrequest req; - struct usbnet *dev; -}; - static bool turbo_mode = true; module_param(turbo_mode, bool, 0644); MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -- 2.45.1