linux/drivers/net/ethernet/intel/e1000
Jacek Kowalski fa8a9346f9 e1000: 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 E1000_MNG_VLAN_NONE with resulting value
rather than casting -1 to u16.

Signed-off-by: Jacek Kowalski <jacek@jacekk.info>
Suggested-by: Simon Horman <horms@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-09-03 10:07:27 -07:00
..
e1000.h e1000: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
e1000_ethtool.c e1000: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
e1000_hw.c e1000: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
e1000_hw.h
e1000_main.c e1000: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
e1000_osdep.h
e1000_param.c
Makefile