summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/plusb.c
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-03-18 14:13:42 +0100
committerDavid S. Miller <davem@davemloft.net>2023-03-20 11:16:27 +0100
commit7d722c9802d4bd61a1f1614e07413b6a5fac382d (patch)
tree20e4ac307ebbd27105f7e13a07520c9e0a072ade /drivers/net/usb/plusb.c
parentnet: usb: lan78xx: Limit packet length to skb->len (diff)
downloadlinux-7d722c9802d4bd61a1f1614e07413b6a5fac382d.tar.xz
linux-7d722c9802d4bd61a1f1614e07413b6a5fac382d.zip
usb: plusb: remove unused pl_clear_QuickLink_features function
clang with W=1 reports drivers/net/usb/plusb.c:65:1: error: unused function 'pl_clear_QuickLink_features' [-Werror,-Wunused-function] pl_clear_QuickLink_features(struct usbnet *dev, int val) ^ This static function is not used, so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/plusb.c')
-rw-r--r--drivers/net/usb/plusb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/usb/plusb.c b/drivers/net/usb/plusb.c
index 7a2b0094de51..2894114858a2 100644
--- a/drivers/net/usb/plusb.c
+++ b/drivers/net/usb/plusb.c
@@ -62,12 +62,6 @@ pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index)
}
static inline int
-pl_clear_QuickLink_features(struct usbnet *dev, int val)
-{
- return pl_vendor_req(dev, 1, (u8) val, 0);
-}
-
-static inline int
pl_set_QuickLink_features(struct usbnet *dev, int val)
{
return pl_vendor_req(dev, 3, (u8) val, 0);