]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
canprio: remove obsolete initialisations
authorOliver Hartkopp <oliver@hartkopp.net>
Mon, 29 Aug 2011 19:08:17 +0000 (21:08 +0200)
committerRostislav Lisovy <lisovy@gmail.com>
Tue, 30 Aug 2011 09:08:46 +0000 (11:08 +0200)
As kzalloc() already sets the space referenced by rules_temp to zero there's
no need to initialize single elements of rules_temp to zero values.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
net/sched/cls_canprio.c

index 390a14958cd1570c61e4e04b903cd4f89e97c9cc..90ea58391a1f0e7c939274ee35678423801a400b 100644 (file)
@@ -245,10 +245,6 @@ static int canprio_set_parms(struct tcf_proto *tp, struct canprio_filter *f,
        if (rules_tmp == NULL)
                return -ENOBUFS;
 
-       bitmap_zero(rules_tmp->match_sff, CAN_SFF_MASK + 1);
-       rules_tmp->inv_match_en = 0;
-
-
        if (tb[TCA_CANPRIO_CLASSID] == NULL) //FIXME is enough?
                return -EINVAL;