diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-10-27 20:06:51 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-10-27 20:06:51 +0100 |
commit | 404b12c10d2f4d77649a193af2ec69f77b852926 (patch) | |
tree | c6dc694436f317b54405405ddc473a0d5255eff0 /drivers | |
parent | mlx4: Setting the correct offset for default mac address (diff) | |
download | linux-404b12c10d2f4d77649a193af2ec69f77b852926.tar.xz linux-404b12c10d2f4d77649a193af2ec69f77b852926.zip |
drivers/net/wan/syncppp: Fix unused-var warnings
Fix !CONFIG_INET warnings.
Spotted, and original patch authored by: Manish Katiyar <mkatiyar@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wan/syncppp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c index 327d58589e12..6e92f7b44b1a 100644 --- a/drivers/net/wan/syncppp.c +++ b/drivers/net/wan/syncppp.c @@ -756,10 +756,11 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb) case CISCO_ADDR_REQ: /* Stolen from net/ipv4/devinet.c -- SIOCGIFADDR ioctl */ { - struct in_device *in_dev; - struct in_ifaddr *ifa; __be32 addr = 0, mask = htonl(~0U); /* FIXME: is the mask correct? */ #ifdef CONFIG_INET + struct in_device *in_dev; + struct in_ifaddr *ifa; + rcu_read_lock(); if ((in_dev = __in_dev_get_rcu(dev)) != NULL) { |