OpenCloudOS-Kernel/drivers/net/ethernet/marvell
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
..
mvpp2 net: mvpp2: always set port pcs ops 2022-02-18 20:14:16 -08:00
octeontx2 octeontx2-af: initialize action variable 2022-03-26 14:14:04 -07:00
prestera net: marvell: prestera: add missing destroy_workqueue() in prestera_module_init() 2022-03-23 10:32:39 -07:00
Kconfig net: marvell: Remove reference to CONFIG_MV64X60 2021-03-18 14:19:39 -07:00
Makefile net: marvell: prestera: Add driver for Prestera family ASIC devices 2020-09-17 16:35:46 -07:00
mv643xx_eth.c net: mv643xx_eth: undo some opreations in mv643xx_eth_probe 2022-03-16 19:31:00 -07:00
mvmdio.c net: mvmdio: fix compilation warning 2021-11-16 18:55:17 -08:00
mvneta.c net: mvneta: Add support for 98DX2530 Ethernet port 2022-03-17 10:49:26 +01:00
mvneta_bm.c
mvneta_bm.h net: mvneta: make stub functions static inline 2019-10-25 16:21:48 -07:00
pxa168_eth.c net: pxa168_eth: Use platform_get_irq() to get the interrupt 2021-12-27 12:22:19 +00:00
skge.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
skge.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00
sky2.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
sky2.h net: marvell: remove leading spaces before tabs 2021-05-19 12:17:31 -07:00