linux/drivers
Maxim Korotkov 4691720f50 bnx2: remove deadcode in bnx2_init_cpus()
The load_cpu_fw function has no error return code
and always returns zero. Checking the value returned by
this function does not make sense.
Now checking the value of the return value is misleading when reading
the code. Path with error handling was deleted in 57579f7629
("bnx2: Use request_firmware()").
As a result, bnx2_init_cpus() will also return only zero
Therefore, it will be safe to change the type of functions
to void and remove checking to improving readability.

Found by Security Code and Linux Verification
Center (linuxtesting.org) with SVACE

Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Maxim Korotkov <korotkov.maxim.s@gmail.com>
Link: https://lore.kernel.org/r/20230322162843.3452-1-korotkov.maxim.s@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-03-23 21:49:15 -07:00
..
accel accel: Build sub-directories based on config options 2023-03-13 12:44:53 +01:00
accessibility
acpi Merge branches 'acpi-video', 'acpi-x86', 'acpi-tools' and 'acpi-docs' 2023-03-17 16:44:41 +01:00
amba
android
ata
atm
auxdisplay
base
bcma
block block: sunvdc: add check for mdesc_grab() returning NULL 2023-03-15 08:48:58 -06:00
bluetooth
bus
cdrom
char tpm: disable hwrng for fTPM on some AMD designs 2023-03-12 23:28:10 +02:00
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio
gpu drm/ttm: drop extra ttm_bo_put in ttm_bo_cleanup_refs 2023-03-17 16:06:58 +10:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md Merge branch 'md-fixes' of https://git.kernel.org/pub/scm/linux/kernel/git/song/md into block-6.3 2023-03-15 12:18:07 -06:00
media
memory
memstick
message
mfd mfd: ocelot: add ocelot-serdes capability 2023-03-20 09:08:48 +00:00
misc
mmc
most
mtd
mux
net bnx2: remove deadcode in bnx2_init_cpus() 2023-03-23 21:49:15 -07:00
nfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-17 16:29:25 -07:00
ntb
nubus
nvdimm
nvme nvme fixes for Linux 6.3 2023-03-16 07:01:48 -06:00
nvmem
of
opp
parisc
parport
pci PCI: s390: Fix use-after-free of PCI resources with per-function hotplug 2023-03-13 09:15:11 +01:00
pcmcia
peci
perf
phy phy: phy-ocelot-serdes: add ability to be used in a non-syscon configuration 2023-03-20 09:08:48 +00:00
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp ptp: kvm: Use decrypted memory in confidential guest on x86 2023-03-17 21:57:52 -07:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 net/ism: Remove extra include 2023-03-15 08:18:35 +00:00
sbus
scsi SCSI fixes on 20230316 2023-03-17 09:30:57 -07:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb wwan: core: Support slicing in port TX flow of WWAN subsystem 2023-03-17 22:38:31 -07:00
vdpa vdpa_sim: set last_used_idx as last_avail_idx in vdpasim_queue_ready 2023-03-13 02:29:12 -04:00
vfio
vhost vhost-vdpa: free iommu domain after last use during cleanup 2023-03-13 02:29:11 -04:00
video Merge drm/drm-fixes into drm-misc-fixes 2023-03-13 10:14:05 +01:00
virt
virtio
vlynq
w1
watchdog
xen xen: branch for v6.3-rc3 2023-03-17 10:45:49 -07:00
zorro
Kconfig
Makefile