../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 276 | if (!bn->tx_ring_map) | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:2: note: remove the 'if' if its condition is always false 276 | if (!bn->tx_ring_map) | ^~~~~~~~~~~~~~~~~~~~~ 277 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 270 | if (!bn->tx_ring) | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:2: note: remove the 'if' if its condition is always false 270 | if (!bn->tx_ring) | ^~~~~~~~~~~~~~~~~ 271 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 253 | if (!bn->rx_ring) | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:2: note: remove the 'if' if its condition is always false 253 | if (!bn->rx_ring) | ^~~~~~~~~~~~~~~~~ 254 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:228:14: note: initialize the variable 'rc' to silence this warning 228 | int i, j, rc, size, arr_size; | ^ | = 0 3 warnings generated. ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 276 | if (!bn->tx_ring_map) | ^~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:2: note: remove the 'if' if its condition is always false 276 | if (!bn->tx_ring_map) | ^~~~~~~~~~~~~~~~~~~~~ 277 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 270 | if (!bn->tx_ring) | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:2: note: remove the 'if' if its condition is always false 270 | if (!bn->tx_ring) | ^~~~~~~~~~~~~~~~~ 271 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 253 | if (!bn->rx_ring) | ^~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here 315 | return rc; | ^~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:2: note: remove the 'if' if its condition is always false 253 | if (!bn->rx_ring) | ^~~~~~~~~~~~~~~~~ 254 | goto err_free_core; | ~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:228:14: note: initialize the variable 'rc' to silence this warning 228 | int i, j, rc, size, arr_size; | ^ | = 0 3 warnings generated. New errors added --- /tmp/tmp.RCXumDtOlC 2025-08-13 09:53:53.481683659 -0700 +++ /tmp/tmp.VbGMOeLJzC 2025-08-13 09:57:25.044453463 -0700 @@ -0,0 +1,38 @@ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 276 | if (!bn->tx_ring_map) + | ^~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here + 315 | return rc; + | ^~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:276:2: note: remove the 'if' if its condition is always false + 276 | if (!bn->tx_ring_map) + | ^~~~~~~~~~~~~~~~~~~~~ + 277 | goto err_free_core; + | ~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 270 | if (!bn->tx_ring) + | ^~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here + 315 | return rc; + | ^~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:270:2: note: remove the 'if' if its condition is always false + 270 | if (!bn->tx_ring) + | ^~~~~~~~~~~~~~~~~ + 271 | goto err_free_core; + | ~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:6: warning: variable 'rc' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 253 | if (!bn->rx_ring) + | ^~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:315:9: note: uninitialized use occurs here + 315 | return rc; + | ^~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:253:2: note: remove the 'if' if its condition is always false + 253 | if (!bn->rx_ring) + | ^~~~~~~~~~~~~~~~~ + 254 | goto err_free_core; + | ~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c:228:14: note: initialize the variable 'rc' to silence this warning + 228 | int i, j, rc, size, arr_size; + | ^ + | = 0 +3 warnings generated. Per-file breakdown --- /tmp/tmp.ubVSuymBIs 2025-08-13 10:00:49.851616668 -0700 +++ /tmp/tmp.XJDTeFjwIz 2025-08-13 10:00:49.854616654 -0700 @@ -0,0 +1 @@ + 4 ../drivers/net/ethernet/broadcom/bnge/bnge_netdev.c