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

batman-adv: Remove uses of return value of seq_printf

This function is soon going to return void so remove the
return value use.

Convert the return value to test seq_has_overflowed() instead.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
6d91147d db2855ae

+10 -9
+10 -9
net/batman-adv/gateway_client.c
··· 592 592 593 593 curr_gw = batadv_gw_get_selected_gw_node(bat_priv); 594 594 595 - ret = seq_printf(seq, "%s %pM (%3i) %pM [%10s]: %u.%u/%u.%u MBit\n", 596 - (curr_gw == gw_node ? "=>" : " "), 597 - gw_node->orig_node->orig, 598 - router_ifinfo->bat_iv.tq_avg, router->addr, 599 - router->if_incoming->net_dev->name, 600 - gw_node->bandwidth_down / 10, 601 - gw_node->bandwidth_down % 10, 602 - gw_node->bandwidth_up / 10, 603 - gw_node->bandwidth_up % 10); 595 + seq_printf(seq, "%s %pM (%3i) %pM [%10s]: %u.%u/%u.%u MBit\n", 596 + (curr_gw == gw_node ? "=>" : " "), 597 + gw_node->orig_node->orig, 598 + router_ifinfo->bat_iv.tq_avg, router->addr, 599 + router->if_incoming->net_dev->name, 600 + gw_node->bandwidth_down / 10, 601 + gw_node->bandwidth_down % 10, 602 + gw_node->bandwidth_up / 10, 603 + gw_node->bandwidth_up % 10); 604 + ret = seq_has_overflowed(seq); 604 605 605 606 if (curr_gw) 606 607 batadv_gw_node_free_ref(curr_gw);