[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZD01RFPbKxhdQ//9@corigine.com>
Date: Mon, 17 Apr 2023 14:02:12 +0200
From: Simon Horman <simon.horman@...igine.com>
To: Michal Schmidt <mschmidt@...hat.com>
Cc: intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Karol Kolacinski <karol.kolacinski@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Michal Michalik <michal.michalik@...el.com>,
Arkadiusz Kubalewski <arkadiusz.kubalewski@...el.com>,
Petr Oros <poros@...hat.com>, Andrew Lunn <andrew@...n.ch>
Subject: Re: [PATCH net-next v2 5/6] ice: remove unused buffer copy code in
ice_sq_send_cmd_retry()
On Wed, Apr 12, 2023 at 10:19:28AM +0200, Michal Schmidt wrote:
> The 'buf_cpy'-related code in ice_sq_send_cmd_retry() looks broken.
> 'buf' is nowhere copied into 'buf_cpy'.
>
> The reason this does not cause problems is that all commands for which
> 'is_cmd_for_retry' is true go with a NULL buf.
>
> Let's remove 'buf_cpy'. Add a WARN_ON in case the assumption no longer
> holds in the future.
>
> Signed-off-by: Michal Schmidt <mschmidt@...hat.com>
Reviewed-by: Simon Horman <simon.horman@...igine.com>
Powered by blists - more mailing lists