.pylintrc: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:6: warning: variable 'duplex' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:123:18: note: uninitialized use occurs here 123 | mucse->duplex = duplex; | ^~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:2: note: remove the 'if' if its condition is always true 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~~~~~~ 110 | hw->ops.check_link(hw, &link_speed, &link_up, &duplex); 111 | } else { | ~~~~~~ 112 | /* always assume link is up, if no check link function */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | link_speed = M_LINK_SPEED_1GB_FULL; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 114 | link_up = true; | ~~~~~~~~~~~~~~~ 115 | } | ~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:103:13: note: initialize the variable 'duplex' to silence this warning 103 | bool duplex; | ^ | = 0 1 warning generated. ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:1082:28: warning: unused function 'rnpgbe_rx_offset' [-Wunused-function] 1082 | static inline unsigned int rnpgbe_rx_offset(void) | ^~~~~~~~~~~~~~~~ 1 warning generated. Warning: ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:1156 function parameter 'mucse' not described in 'rnpgbe_clean_all_tx_rings' Warning: ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:1156 Excess function parameter 'adapter' description in 'rnpgbe_clean_all_tx_rings' .pylintrc: warning: ignored by one of the .gitignore files ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:6: warning: variable 'duplex' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:123:18: note: uninitialized use occurs here 123 | mucse->duplex = duplex; | ^~~~~~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:109:2: note: remove the 'if' if its condition is always true 109 | if (hw->ops.check_link) { | ^~~~~~~~~~~~~~~~~~~~~~~ 110 | hw->ops.check_link(hw, &link_speed, &link_up, &duplex); 111 | } else { | ~~~~~~ 112 | /* always assume link is up, if no check link function */ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 113 | link_speed = M_LINK_SPEED_1GB_FULL; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 114 | link_up = true; | ~~~~~~~~~~~~~~~ 115 | } | ~ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_main.c:103:13: note: initialize the variable 'duplex' to silence this warning 103 | bool duplex; | ^ | = 0 1 warning generated. ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:699:6: warning: variable 'cleaned_total' set but not used [-Wunused-but-set-variable] 699 | int cleaned_total = 0; | ^ ../drivers/net/ethernet/mucse/rnpgbe/rnpgbe_lib.c:303:28: warning: unused function 'rnpgbe_rx_offset' [-Wunused-function] 303 | static inline unsigned int rnpgbe_rx_offset(void) | ^~~~~~~~~~~~~~~~ 2 warnings generated.