> -----Original Message----- > From: Intel-wired-lan <[email protected]> On Behalf Of Jacek > Kowalski > Sent: 23 July 2025 14:25 > To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; Andrew Lunn <[email protected]>; David S. > Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub > Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Simon Horman > <[email protected]> > Cc: [email protected]; [email protected] > Subject: [Intel-wired-lan] [PATCH iwl-next v3 3/5] igb: drop unnecessary > constant casts to u16 > > Remove unnecessary casts of constant values to u16. > C's integer promotion rules make them ints no matter what. > > Additionally replace IGB_MNG_VLAN_NONE with resulting value rather than > casting -1 to u16. > > Signed-off-by: Jacek Kowalski <[email protected]> > Suggested-by: Simon Horman <[email protected]> > --- > drivers/net/ethernet/intel/igb/e1000_82575.c | 4 ++-- > drivers/net/ethernet/intel/igb/e1000_i210.c | 2 +- > drivers/net/ethernet/intel/igb/e1000_nvm.c | 4 ++-- > drivers/net/ethernet/intel/igb/igb.h | 2 +- > drivers/net/ethernet/intel/igb/igb_main.c | 3 +-- > 5 files changed, 7 insertions(+), 8 deletions(-) >
Tested-by: Rinitha S <[email protected]> (A Contingent worker at Intel)
