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>
if (rules_tmp == NULL)
return -ENOBUFS;
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;
if (tb[TCA_CANPRIO_CLASSID] == NULL) //FIXME is enough?
return -EINVAL;