linux/drivers/net/ethernet/marvell/octeontx2
Tom Rix 33b5bc9e70 octeontx2-af: initialize action variable
Clang static analysis reports this representative issue
rvu_npc.c:898:15: warning: Assigned value is garbage
  or undefined
  req.match_id = action.match_id;
               ^ ~~~~~~~~~~~~~~~

The initial setting of action is conditional on
 if (is_mcam_entry_enabled(...))
The later check of action.op will sometimes be garbage.
So initialize action.

Reduce setting of
  *(u64 *)&action = 0x00;
to
  *(u64 *)&action = 0;

Fixes: 967db3529e ("octeontx2-af: add support for multicast/promisc packet replication feature")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-03-26 14:14:04 -07:00
..
af octeontx2-af: initialize action variable 2022-03-26 14:14:04 -07:00
nic flow_offload: reject offload for all drivers with invalid police parameters 2022-02-28 11:12:20 +00:00
Kconfig octeontx2-pf: select CONFIG_NET_DEVLINK 2021-11-05 10:14:38 +00:00
Makefile