]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ixgbe: drop unnecessary casts to u16 / int
authorJacek Kowalski <jacek@jacekk.info>
Wed, 23 Jul 2025 08:55:37 +0000 (10:55 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 3 Sep 2025 17:07:27 +0000 (10:07 -0700)
commit396a788bca86ebef419471c73debdc46227972b5
treecf91169457c0b43877afba106b8c5700fbc18977
parentd45dda4914e9f675c4af9c61f409cfabe160954d
ixgbe: drop unnecessary casts to u16 / int

Remove unnecessary casts of constant values to u16.
C's integer promotion rules make them ints no matter what.

Additionally drop cast from u16 to int in return statements.

Signed-off-by: Jacek Kowalski <jacek@jacekk.info>
Suggested-by: Simon Horman <horms@kernel.org>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Rinitha S <sx.rinitha@intel.com> (A Contingent worker at Intel)
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c
drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c