usb: plusb: remove unused pl_clear_QuickLink_features function

Message ID 20230318131342.1684103-1-trix@redhat.com
State New
Headers
Series usb: plusb: remove unused pl_clear_QuickLink_features function |

Commit Message

Tom Rix March 18, 2023, 1:13 p.m. UTC
  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>
---
 drivers/net/usb/plusb.c | 6 ------
 1 file changed, 6 deletions(-)
  

Comments

patchwork-bot+netdevbpf@kernel.org March 20, 2023, 10:20 a.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@davemloft.net>:

On Sat, 18 Mar 2023 09:13:42 -0400 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - usb: plusb: remove unused pl_clear_QuickLink_features function
    https://git.kernel.org/netdev/net/c/7d722c9802d4

You are awesome, thank you!
  

Patch

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
@@ -61,12 +61,6 @@  pl_vendor_req(struct usbnet *dev, u8 req, u8 val, u8 index)
 				val, index, NULL, 0);
 }
 
-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)
 {