diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c index 317151bae73b5a07ecc64894a75700b0f6c29d55..4e34966f2ae2cec54ec95ddf378254fe7fa0847c 100644 --- a/net/sched/cls_fw.c +++ b/net/sched/cls_fw.c @@ -362,10 +362,7 @@ static void fw_walk(struct tcf_proto *tp, struct tcf_walker *arg, struct fw_head *head = rtnl_dereference(tp->root); int h; - if (head == NULL) - arg->stop = 1; - - if (arg->stop) + if (head == NULL || arg->stop) return; for (h = 0; h < HTSIZE; h++) {