Remove the unused but defined macros TRUE, FALSE. Remove commented code, which refers to the non-existent functions r8156_*_eee. Signed-off-by: Albert Zhou <albert.zhou.50@xxxxxxxxx> --- drivers/net/usb/r8152.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 10dff6a88093..6ffc89780c96 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -46,11 +46,6 @@ #include <linux/mdio.h> #include <uapi/linux/mdio.h> -#ifndef FALSE - #define TRUE 1 - #define FALSE 0 -#endif - enum rtl_cmd { RTLTOOL_PLA_OCP_READ_DWORD = 0, RTLTOOL_PLA_OCP_WRITE_DWORD, @@ -19096,10 +19091,6 @@ static int rtl_ops_init(struct r8152 *tp) ops->up = rtl8156_up; ops->down = rtl8156_down; ops->unload = rtl8153_unload; -//#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) -// ops->eee_get = r8156_get_eee; -// ops->eee_set = r8156_set_eee; -//#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) */ ops->in_nway = rtl8153_in_nway; ops->hw_phy_cfg = r8156_hw_phy_cfg_test; ops->autosuspend_en = rtl8156_runtime_enable; -- 2.34.1