linux_dsm_epyc7002/drivers/net/ethernet/broadcom
Gustavo A. R. Silva 5fc7c12ffa bnxt_en: Remove unnecessary unsigned integer comparison and initialize variable
There is no need to compare *val.vu32* with < 0 because
such variable is of type u32 (32 bits, unsigned), making it
impossible to hold a negative value. Fix this by removing
such comparison.

Also, initialize variable *max_val* to -1, just in case
it is not initialized to either BNXT_MSIX_VEC_MAX or
BNXT_MSIX_VEC_MIN_MAX before using it in a comparison
with val.vu32 at line 159:

	if (val.vu32 > max_val)

Addresses-Coverity-ID: 1473915 ("Unsigned compared against 0")
Addresses-Coverity-ID: 1473920 ("Uninitialized scalar variable")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-10-07 20:36:40 -07:00
..
bnx2x Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-09-25 10:35:29 -07:00
bnxt bnxt_en: Remove unnecessary unsigned integer comparison and initialize variable 2018-10-07 20:36:40 -07:00
genet net: bcmgenet: Fix speed selection for reverse MII 2018-09-12 20:24:21 -07:00
b44.c
b44.h
bcm63xx_enet.c net: broadcom: fix return type of ndo_start_xmit function 2018-09-19 21:17:58 -07:00
bcm63xx_enet.h
bcmsysport.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-10-03 21:00:17 -07:00
bcmsysport.h net: systemport: Add software counters to track reallocations 2018-10-01 23:11:53 -07:00
bgmac-bcma-mdio.c
bgmac-bcma.c
bgmac-platform.c
bgmac.c net: bgmac: remove set but not used variable 'err' 2018-09-01 22:30:41 -07:00
bgmac.h net: bgmac: Correctly annotate register space 2018-04-01 22:20:48 -04:00
bnx2_fw.h
bnx2.c treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
bnx2.h
cnic_defs.h
cnic_if.h
cnic.c cnic: use kvzalloc to allocate memory for csk_tbl 2018-07-11 22:55:52 -07:00
cnic.h
Kconfig bnxt_en: Add hwmon sysfs support to read temperature 2018-08-05 17:08:26 -07:00
Makefile
sb1250-mac.c net: broadcom: fix return type of ndo_start_xmit function 2018-09-19 21:17:58 -07:00
tg3.c tg3: Fix fall-through annotations 2018-09-13 15:36:41 -07:00
tg3.h tg3: Update copyright 2018-07-16 14:42:10 -07:00