linux-stable/drivers
Shin'ichiro Kawasaki 155ca832cf scsi: mpi3mr: Remove unnecessary memcpy() to alltgt_info->dmi
commit eeb270aee3 upstream.

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: f5e6d5a343 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-10 09:34:06 +01:00
..
accessibility
acpi ACPI: video: Fix Lenovo Ideapad Z570 DMI match 2023-03-10 09:33:52 +01:00
amba
android
ata
atm
auxdisplay
base driver core: fw_devlink: Avoid spurious error message 2023-03-10 09:34:01 +01:00
bcma
block
bluetooth Bluetooth: btusb: Add VID:PID 13d3:3529 for Realtek RTL8821CE 2023-03-10 09:33:53 +01:00
bus
cdrom
char ipmi_ssif: Rename idle state and check 2023-03-10 09:34:03 +01:00
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto crypto: hisilicon: Wipe entire pool on error 2023-03-10 09:33:50 +01:00
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-10 09:34:02 +01:00
fpga
fsi
gnss
gpio
gpu drm/shmem-helper: Revert accidental non-GPL export 2023-03-10 09:34:01 +01:00
greybus
hid HID: logitech-hidpp: Don't restart communication if not necessary 2023-03-10 09:34:00 +01:00
hsi
hte
hv
hwmon hwmon: (nct6775) B650/B660/X670 ASUS boards support 2023-03-10 09:33:59 +01:00
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors 2023-03-10 09:33:40 +01:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md dm cache: add cond_resched() to various workqueue loops 2023-03-10 09:34:01 +01:00
media media: saa7134: Use video_unregister_device for radio_dev 2023-03-10 09:33:44 +01:00
memory
memstick
message
mfd
misc habanalabs: fix bug in timestamps registration code 2023-03-10 09:33:58 +01:00
mmc
most
mtd
mux
net wifi: rtl8xxxu: fixing transmisison failure for rtl8192eu 2023-03-10 09:34:02 +01:00
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci
pcmcia
peci
perf
phy
pinctrl pinctrl: at91: use devm_kasprintf() to avoid potential leaks 2023-03-10 09:33:59 +01:00
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator regulator: s5m8767: Bounds check id indexing into arrays 2023-03-10 09:33:58 +01:00
remoteproc remoteproc: qcom_q6v5_mss: Use a carveout to authenticate modem headers 2023-03-10 09:33:40 +01:00
reset
rpmsg rpmsg: glink: Release driver_override 2023-03-10 09:33:45 +01:00
rtc rtc: pm8xxx: fix set-alarm race 2023-03-10 09:34:02 +01:00
s390
sbus
scsi scsi: mpi3mr: Remove unnecessary memcpy() to alltgt_info->dmi 2023-03-10 09:34:06 +01:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging media: atomisp: Only set default_run_mode on first open of a stream/asd 2023-03-10 09:33:44 +01:00
target
tc
tee
thermal thermal: intel: intel_pch: Add support for Wellsburg PCH 2023-03-10 09:33:50 +01:00
thunderbolt
tty
ufs scsi: ufs: core: Fix device management cmd timeout flow 2023-03-10 09:34:00 +01:00
uio
usb
vdpa
vfio
vhost
video Revert "fbcon: don't lose the console font across generic->chip driver switch" 2023-03-10 09:33:56 +01:00
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile