net-bonding: Fix minor sparse complaints

This gets rid of minor sparse complaints:
drivers/net/bonding/bond_main.c:4361:4: warning: do-while statement is not a compound statement
drivers/net/bonding/bond_main.c:243:12: warning: symbol 'bond_mode_name' was not declared. Should it be static?

Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
这个提交包含在:
David Decotigny
2011-04-13 15:22:29 +00:00
提交者 David S. Miller
父节点 ef9c7ab4a9
当前提交 d30ee670f2
修改 3 个文件,包含 3 行新增4 行删除

查看文件

@@ -4357,9 +4357,9 @@ static u16 bond_select_queue(struct net_device *dev, struct sk_buff *skb)
u16 txq = skb_rx_queue_recorded(skb) ? skb_get_rx_queue(skb) : 0;
if (unlikely(txq >= dev->real_num_tx_queues)) {
do
do {
txq -= dev->real_num_tx_queues;
while (txq >= dev->real_num_tx_queues);
} while (txq >= dev->real_num_tx_queues);
}
return txq;
}