diff options
author | 2023-02-14 09:50:17 +0900 | |
---|---|---|
committer | 2023-02-21 22:00:50 -0500 | |
commit | eeb270aee3e085411399f129fc14fa04bd6d83cf (patch) | |
tree | defbf47520f6fae1b3266f0692de06fe0eaef8b0 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: mpi3mr: Fix issues in mpi3mr_get_all_tgt_info() (diff) | |
download | wireguard-linux-eeb270aee3e085411399f129fc14fa04bd6d83cf.tar.xz wireguard-linux-eeb270aee3e085411399f129fc14fa04bd6d83cf.zip |
scsi: mpi3mr: Remove unnecessary memcpy() to alltgt_info->dmi
In the function mpi3mr_get_all_tgt_info(), devmap_info points to
alltgt_info->dmi then there is no need to memcpy() data from devmap_info to
alltgt_info->dmi. Remove the unnecessary memcpy(). This also allows to
remove the local variable 'rval' and the goto label 'out'.
Link: https://lore.kernel.org/r/20230214005019.1897251-3-shinichiro.kawasaki@wdc.com
Cc: stable@vger.kernel.org
Fixes: f5e6d5a34376 ("scsi: mpi3mr: Add support for driver commands")
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions