diff options
| author | Michal Swiatkowski <[email protected]> | 2025-04-09 06:29:45 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-04-29 22:19:09 +0000 |
| commit | c058c5f8b6e424261c4974b39f2596e9d521f13f (patch) | |
| tree | 1fdd932ea9028f374c2be1064d05fa08d870ff03 /drivers/net/ethernet/intel/igc/igc_phy.c | |
| parent | idpf: assign extracted ptype to struct libeth_rqe_info field (diff) | |
| download | kernel-c058c5f8b6e424261c4974b39f2596e9d521f13f.tar.gz kernel-c058c5f8b6e424261c4974b39f2596e9d521f13f.zip | |
idpf: remove unreachable code from setting mailbox
Remove code that isn't reached. There is no need to check for
adapter->req_vec_chunks, because if it isn't set idpf_set_mb_vec_id()
won't be called.
Only one path when idpf_set_mb_vec_id() is called:
idpf_intr_req()
-> idpf_send_alloc_vectors_msg() -> adapter->req_vec_chunk is allocated
here, otherwise an error is returned and idpf_intr_req() exits with an
error.
The idpf_set_mb_vec_id() becomes one-liner and it is called only once.
Remove it and set mailbox vector index directly.
Reviewed-by: Aleksandr Loktionov <[email protected]>
Reviewed-by: Michal Kubiak <[email protected]>
Reviewed-by: Pavan Kumar Linga <[email protected]>
Signed-off-by: Michal Swiatkowski <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Samuel Salin <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_phy.c')
0 files changed, 0 insertions, 0 deletions
