aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-11-26 16:54:17 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-03 12:59:13 -0800
commitec348687008984da6d4fbabf6f359f37c99dcebe (patch)
tree3517492748a847b552dcbef07a8f14435a43f99b /Documentation/networking
parent7ddaba0a4191dfa77db0167a76a7b3e1d46cbd2d (diff)
downloadkernel_samsung_smdk4412-ec348687008984da6d4fbabf6f359f37c99dcebe.zip
kernel_samsung_smdk4412-ec348687008984da6d4fbabf6f359f37c99dcebe.tar.gz
kernel_samsung_smdk4412-ec348687008984da6d4fbabf6f359f37c99dcebe.tar.bz2
ifenslave: Fix unused variable warnings.
commit 450faacc621dbe0a4945ed8292afd45f4602d263 upstream. Documentation/networking/ifenslave.c: In function ‘if_getconfig’: Documentation/networking/ifenslave.c:508:14: warning: variable ‘mtu’ set but not used [-Wunused-but-set-variable] Documentation/networking/ifenslave.c:508:6: warning: variable ‘metric’ set but not used [-Wunused-but-set-variable] The purpose of this function is to simply print out the values it probes, so... Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/ifenslave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/networking/ifenslave.c b/Documentation/networking/ifenslave.c
index 2bac961..50f1dc4 100644
--- a/Documentation/networking/ifenslave.c
+++ b/Documentation/networking/ifenslave.c
@@ -539,12 +539,14 @@ static int if_getconfig(char *ifname)
metric = 0;
} else
metric = ifr.ifr_metric;
+ printf("The result of SIOCGIFMETRIC is %d\n", metric);
strcpy(ifr.ifr_name, ifname);
if (ioctl(skfd, SIOCGIFMTU, &ifr) < 0)
mtu = 0;
else
mtu = ifr.ifr_mtu;
+ printf("The result of SIOCGIFMTU is %d\n", mtu);
strcpy(ifr.ifr_name, ifname);
if (ioctl(skfd, SIOCGIFDSTADDR, &ifr) < 0) {