diff options
author | 2023-04-12 10:19:28 +0200 | |
---|---|---|
committer | 2023-04-20 16:33:14 -0700 | |
commit | 43a630e37e259fee83ab3fd769c42e2fed97ca81 (patch) | |
tree | 6addf3d73b82a7a911550fafcf12f984e49182de /scripts/generate_rust_analyzer.py | |
parent | ice: sleep, don't busy-wait, for ICE_CTL_Q_SQ_CMD_TIMEOUT (diff) | |
download | linux-rng-43a630e37e259fee83ab3fd769c42e2fed97ca81.tar.xz linux-rng-43a630e37e259fee83ab3fd769c42e2fed97ca81.zip |
ice: remove unused buffer copy code in ice_sq_send_cmd_retry()
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@redhat.com>
Reviewed-by: Arkadiusz Kubalewski <arkadiusz.kubalewski@intel.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Tested-by: Sunitha Mekala <sunithax.d.mekala@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions