summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flowtop.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/flowtop.c b/flowtop.c
index 025e815..0fa9663 100644
--- a/flowtop.c
+++ b/flowtop.c
@@ -937,16 +937,11 @@ static void presenter_screen_update(WINDOW *screen, struct flow_list *fl,
for (j = 0; j < protocol_state_size[protocols[i]]; j++) {
n = rcu_dereference(fl->head);
while (n && maxy > 0) {
- int skip_entry = 0;
-
- if (n->l4_proto != protocols[i])
- skip_entry = 1;
- if (presenter_flow_wrong_state(n, j))
- skip_entry = 1;
- if (presenter_get_port(n->port_src,
- n->port_dst, 0) == 53)
- skip_entry = 1;
- if (skip_entry) {
+ if (n->l4_proto != protocols[i] ||
+ presenter_flow_wrong_state(n, j) ||
+ presenter_get_port(n->port_src,
+ n->port_dst, 0) == 53) {
+ /* skip entry */
n = rcu_dereference(n->next);
continue;
}
an>
Instead of using a private copy of struct net_device_stats in struct pegasus, use stats from struct net_device. Also remove the now unnecessary .ndo_get_stats function. Cc: Petko Manolov <petkan@nucleusys.com> Cc: linux-usb@vger.kernel.org Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'arch/mn10300/unit-asb2364/include/unit/smsc911x.h')