2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

Remove unnecessary memset().

We already set all the fields of the upcall, so memsetting right before
is unnecessary.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Jarno Rajahalme
2013-12-17 15:54:30 -08:00
parent 32f61d592a
commit 877c9270fb

View File

@@ -1460,7 +1460,7 @@ parse_odp_packet(struct ofpbuf *buf, struct dpif_upcall *upcall,
return EINVAL;
}
memset(upcall, 0, sizeof *upcall);
/* (Re)set ALL fields of '*upcall' on successful return. */
upcall->type = type;
upcall->key = CONST_CAST(struct nlattr *,
nl_attr_get(a[OVS_PACKET_ATTR_KEY]));