diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2017-05-18 19:45:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-18 20:46:07 +0200 |
commit | db646cc0aefbc5da0b9699ed40d4402e01245f57 (patch) | |
tree | 617e02f8f5b8a1566a6324f75864d1dd9f563c0c /drivers/net/usb | |
parent | qed: Utilize FW 8.20.0.0 (diff) | |
download | linux-db646cc0aefbc5da0b9699ed40d4402e01245f57.tar.xz linux-db646cc0aefbc5da0b9699ed40d4402e01245f57.zip |
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]
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/r8152.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index ddc62cb69be8..e902df9595b9 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -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); |