Skip to contentSkip to conversation

r8152: Remove unused function usb_ocp_read()

PATCH Applied Matthias Kaehlcke 2 participants 2 messages May 18, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 r8152: Remove unused function usb_ocp_read()

The function is not used, removing it fixes the following warning when building with clang:

drivers/net/usb/r8152.c:825:5: error: unused function 'usb_ocp_read'
[-Werror,-Wunused-function]

---
 drivers/net/usb/r8152.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/net/usb/r8152.c +0 -6
index ddc62cb69be8..e902df9595b9 100644
@@ -841,12 +841,6 @@ int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
 }
 
 static inline
-int usb_ocp_read(struct r8152 *tp, u16 index, u16 size, void *data)
-{
-	return generic_ocp_read(tp, index, size, data, MCU_TYPE_USB);
-}
-
-static inline
 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen, u16 size, void *data)
 {
 	return generic_ocp_write(tp, index, byteen, size, data, MCU_TYPE_USB);
Signature · 1 line
2.13.0.303.g4ebf302169-goog
maintainer Applied
#1 lore raw

From: Matthias Kaehlcke <[email protected]>
Date: Thu, 18 May 2017 10:45:33 -0700

Quoted 7 lines

The function is not used, removing it fixes the following warning when building with clang:

drivers/net/usb/r8152.c:825:5: error: unused function 'usb_ocp_read'
[-Werror,-Wunused-function]

Applied to net-next.