LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] : Fix unused variable compilation warnings in drivers/net/wan/syncppp.c
@ 2008-10-27 12:48 Manish Katiyar
0 siblings, 0 replies; only message in thread
From: Manish Katiyar @ 2008-10-27 12:48 UTC (permalink / raw)
To: kernel-janitors, linux-netdev, LKML; +Cc: mkatiyar
Below patch fixes the unused compilation warnings in
drivers/net/wan/syncppp.c when CONFIG_INET is not defined.
Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
---
drivers/net/wan/syncppp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wan/syncppp.c b/drivers/net/wan/syncppp.c
index 327d585..11124f3 100644
--- a/drivers/net/wan/syncppp.c
+++ b/drivers/net/wan/syncppp.c
@@ -756,10 +756,10 @@ 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)
{
--
1.5.4.3
Thanks -
Manish
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-10-27 12:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-27 12:48 [PATCH] : Fix unused variable compilation warnings in drivers/net/wan/syncppp.c Manish Katiyar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).