Skip to content

Commit

Permalink
drivers/net/wan/syncppp: Fix unused-var warnings
Browse files Browse the repository at this point in the history
Fix !CONFIG_INET warnings.

Spotted, and original patch authored by: Manish Katiyar <mkatiyar@gmail.com>

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Oct 27, 2008
1 parent e65b959 commit 404b12c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wan/syncppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 404b12c

Please sign in to comment.