Commit 404b12c1 authored by Jeff Garzik's avatar Jeff Garzik Committed by Jeff Garzik

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: default avatarJeff Garzik <jgarzik@redhat.com>
parent e65b9591
...@@ -756,10 +756,11 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb) ...@@ -756,10 +756,11 @@ static void sppp_cisco_input (struct sppp *sp, struct sk_buff *skb)
case CISCO_ADDR_REQ: case CISCO_ADDR_REQ:
/* Stolen from net/ipv4/devinet.c -- SIOCGIFADDR ioctl */ /* 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? */ __be32 addr = 0, mask = htonl(~0U); /* FIXME: is the mask correct? */
#ifdef CONFIG_INET #ifdef CONFIG_INET
struct in_device *in_dev;
struct in_ifaddr *ifa;
rcu_read_lock(); rcu_read_lock();
if ((in_dev = __in_dev_get_rcu(dev)) != NULL) if ((in_dev = __in_dev_get_rcu(dev)) != NULL)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment