From: Simon Horman <horms@kernel.org>
To: Jacek Kowalski <jacek@jacekk.info>
Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
Przemek Kitszel <przemyslaw.kitszel@intel.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org
Subject: Re: [Intel-wired-lan] [PATCH iwl-next v2 2/5] e1000e: drop unnecessary constant casts to u16
Date: Tue, 8 Jul 2025 20:07:48 +0100 [thread overview]
Message-ID: <20250708190748.GX452973@horms.kernel.org> (raw)
In-Reply-To: <faa67583-4981-4c99-8eed-56e60140c28f@jacekk.info>
On Tue, Jul 08, 2025 at 10:17:22AM +0200, Jacek Kowalski wrote:
> Remove unnecessary casts of constant values to u16.
> Let the C type system do it's job.
>
> Signed-off-by: Jacek Kowalski <Jacek@jacekk.info>
> Suggested-by: Simon Horman <horms@kernel.org>
The nit below not withstanding this looks good to me.
Reviewed-by: Simon Horman <horms@kernel.org>
> ---
> drivers/net/ethernet/intel/e1000e/ethtool.c | 2 +-
> drivers/net/ethernet/intel/e1000e/nvm.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/e1000e/ethtool.c b/drivers/net/ethernet/intel/e1000e/ethtool.c
> index c0bbb12eed2e..5d8c66253779 100644
> --- a/drivers/net/ethernet/intel/e1000e/ethtool.c
> +++ b/drivers/net/ethernet/intel/e1000e/ethtool.c
> @@ -959,7 +959,7 @@ static int e1000_eeprom_test(struct e1000_adapter *adapter, u64 *data)
> }
>
> /* If Checksum is not Correct return error else test passed */
> - if ((checksum != (u16)NVM_SUM) && !(*data))
> + if ((checksum != NVM_SUM) && !(*data))
Unnecessary inner parentheses here too.
...
next prev parent reply other threads:[~2025-07-08 19:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 8:16 [Intel-wired-lan] [PATCH iwl-next v2 0/5] drop unnecessary constant casts to u16 Jacek Kowalski
2025-07-08 8:16 ` [Intel-wired-lan] [PATCH iwl-next v2 1/5] e1000: " Jacek Kowalski
2025-07-08 19:06 ` Simon Horman
2025-07-08 19:40 ` Jacek Kowalski
2025-07-14 12:21 ` David Laight
2025-07-09 3:03 ` kernel test robot
2025-07-11 17:25 ` David Laight
2025-07-08 8:17 ` [Intel-wired-lan] [PATCH iwl-next v2 2/5] e1000e: " Jacek Kowalski
2025-07-08 19:07 ` Simon Horman [this message]
2025-07-08 8:17 ` [Intel-wired-lan] [PATCH iwl-next v2 3/5] igb: " Jacek Kowalski
2025-07-08 19:08 ` Simon Horman
2025-07-08 8:18 ` [Intel-wired-lan] [PATCH iwl-next v2 4/5] igc: " Jacek Kowalski
2025-07-08 19:08 ` Simon Horman
2025-07-08 8:18 ` [Intel-wired-lan] [PATCH iwl-next v2 5/5] ixgbe: " Jacek Kowalski
2025-07-08 8:54 ` Loktionov, Aleksandr
2025-07-08 9:34 ` Jacek Kowalski
2025-07-08 10:26 ` Loktionov, Aleksandr
2025-07-08 11:13 ` Jacek Kowalski
2025-07-08 19:08 ` Simon Horman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250708190748.GX452973@horms.kernel.org \
--to=horms@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=anthony.l.nguyen@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacek@jacekk.info \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=przemyslaw.kitszel@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox