Skip to content

Commit

Permalink
Fix compile errors with extra ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
mad-ady committed Dec 15, 2017
1 parent abf3b08 commit 7f7aab3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -4978,7 +4978,6 @@ static void rtl8152_fake_poll(struct net_device *netdev)
{
}

#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,29)
static const struct net_device_ops rtl8152_netdev_ops = {
.ndo_open = rtl8152_open,
.ndo_stop = rtl8152_close,
Expand All @@ -4990,7 +4989,6 @@ static const struct net_device_ops rtl8152_netdev_ops = {
.ndo_set_mac_address = rtl8152_set_mac_address,
.ndo_change_mtu = rtl8152_change_mtu,
.ndo_validate_addr = eth_validate_addr,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,4)
.ndo_features_check = rtl8152_features_check,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = rtl8152_fake_poll,
Expand Down

0 comments on commit 7f7aab3

Please sign in to comment.