compat: add missing return value to netif_set_real_num_tx_queues
authorHauke Mehrtens <hauke@hauke-m.de>
Wed, 9 Jan 2013 16:34:20 +0000 (17:34 +0100)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 10 Jan 2013 21:11:25 +0000 (13:11 -0800)
This fixes the following warning:

compat/compat-2.6.35.o
compat/compat-2.6.35.c: In function ‘netif_set_real_num_tx_queues’:
compat/compat-2.6.35.c:45:1: warning: control reaches end of non-void function [-Wreturn-type]

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
compat/compat-2.6.35.c

index d33db4648e4dd2552b1ac8884de8a3cc3e4ad1ad..0fc0db2a54433a6e32248896a5ec5c89c3964658 100644 (file)
@@ -42,12 +42,14 @@ int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq)
                dev->real_num_tx_queues = txq;
                qdisc_reset_all_tx_gt(dev, txq);
        }
+       return 0;
 }
 #else
 int netif_set_real_num_tx_queues(struct net_device *dev, unsigned int txq)
 {
        dev->egress_subqueue_count = txq;
        /* XXX: consider qdisc reset for older kernels */
+       return 0;
 }
 #endif
 EXPORT_SYMBOL_GPL(netif_set_real_num_tx_queues);