Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ifenslave: Fix unused variable warnings.

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>

+2
+2
Documentation/networking/ifenslave.c
··· 539 539 metric = 0; 540 540 } else 541 541 metric = ifr.ifr_metric; 542 + printf("The result of SIOCGIFMETRIC is %d\n", metric); 542 543 543 544 strcpy(ifr.ifr_name, ifname); 544 545 if (ioctl(skfd, SIOCGIFMTU, &ifr) < 0) 545 546 mtu = 0; 546 547 else 547 548 mtu = ifr.ifr_mtu; 549 + printf("The result of SIOCGIFMTU is %d\n", mtu); 548 550 549 551 strcpy(ifr.ifr_name, ifname); 550 552 if (ioctl(skfd, SIOCGIFDSTADDR, &ifr) < 0) {