linux/drivers/net/ethernet
Nathan Chancellor 7395f62d95 dpaa_eth: Remove unnecessary boolean expression in dpaa_get_headroom
Clang warns:

drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:2860:9: warning:
converting the result of '?:' with integer constants to a boolean always
evaluates to 'true' [-Wtautological-constant-compare]
        return DPAA_FD_DATA_ALIGNMENT ? ALIGN(headroom,
               ^
drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:131:34: note: expanded
from macro 'DPAA_FD_DATA_ALIGNMENT'
\#define DPAA_FD_DATA_ALIGNMENT  (fman_has_errata_a050385() ? 64 : 16)
                                 ^
1 warning generated.

This was exposed by commit 3c68b8fffb ("dpaa_eth: FMan erratum A050385
workaround") even though it appears to have been an issue since the
introductory commit 9ad1a37493 ("dpaa_eth: add support for DPAA
Ethernet") since DPAA_FD_DATA_ALIGNMENT has never been able to be zero.

Just replace the whole boolean expression with the true branch, as it is
always been true.

Link: https://github.com/ClangBuiltLinux/linux/issues/928
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-11 13:36:56 -07:00
..
3com
8390
adaptec
aeroflex
agere
alacritech
allwinner
alteon
altera
amazon net: ena: ena-com.c: prevent NULL pointer dereference 2020-02-11 17:08:31 -08:00
amd Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
apm
apple
aquantia net: atlantic: fix out of range usage of active_vlans array 2020-02-16 19:03:40 -08:00
arc
atheros Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
aurora
broadcom bnxt_en: fix error handling when flashing from file 2020-03-01 19:15:27 -08:00
brocade Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
cadence net: macb: Properly handle phylink on at91rm9200 2020-02-20 15:00:31 -08:00
calxeda
cavium net: thunderx: workaround BGX TX Underflow issue 2020-02-20 15:49:20 -08:00
chelsio cxgb4: fix checks for max queues to allocate 2020-03-03 19:00:11 -08:00
cirrus
cisco enic: prevent waking up stopped tx queues over watchdog reset 2020-02-12 09:43:26 -08:00
cortina
davicom net: ethernet: dm9000: Handle -EPROBE_DEFER in dm9000_parse_dt() 2020-02-16 20:01:43 -08:00
dec net: ethernet: dec: tulip: Fix length mask in receive length calculation 2020-02-05 14:21:31 +01:00
dlink
emulex
ezchip
faraday
freescale dpaa_eth: Remove unnecessary boolean expression in dpaa_get_headroom 2020-03-11 13:36:56 -07:00
fujitsu
google
hisilicon net: hns3: fix a not link up issue when fibre port supports autoneg 2020-03-05 12:04:50 -08:00
huawei hinic: fix a bug of rss configuration 2020-02-27 11:08:01 -08:00
i825xx Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
ibm ibmvnic: Do not process device remove during device reset 2020-03-10 15:50:42 -07:00
intel ice: Wait for VF to be reset/ready before configuration 2020-02-19 11:50:41 -08:00
marvell net: mvneta: move rx_dropped and rx_errors in per-cpu stats 2020-02-06 11:29:38 +01:00
mediatek
mellanox mlxsw: pci: Wait longer before accessing the device after reset 2020-02-27 12:09:22 -08:00
micrel net: ks8851-ml: Fix IRQ handling and locking 2020-02-23 20:53:42 -08:00
microchip
moxa
mscc net: mscc: ocelot: properly account for VLAN header length when setting MRU 2020-03-09 18:58:17 -07:00
myricom
natsemi Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
neterion
netronome Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
ni
nvidia
nxp
oki-semi
packetengines
pasemi
pensando ionic: fix vf op lock usage 2020-03-06 22:02:29 -08:00
qlogic qede: Fix race between rdma destroy workqueue and link change event 2020-02-18 12:05:53 -08:00
qualcomm net: rmnet: fix packet forwarding in rmnet bridge mode 2020-02-27 11:45:07 -08:00
rdc
realtek r8169: fix performance regression related to PCIe max read request size 2020-02-06 14:17:44 +01:00
renesas
rocker
samsung
seeq
sfc sfc: detach from cb_page in efx_copy_channel() 2020-03-09 17:44:05 -07:00
sgi net: sgi: ioc3-eth: Remove leftover free_irq() 2020-02-05 13:53:54 +01:00
silan
sis
smsc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
socionext net: ethernet: ave: Add capability of rgmii-id mode 2020-02-12 09:55:04 -08:00
stmicro net: stmmac: dwmac1000: Disable ACS if enhanced descs are not used 2020-03-08 21:27:44 -07:00
sun sunvnet: use icmp_ndo_send helper 2020-02-13 14:19:00 -08:00
synopsys
tehuti
ti Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
toshiba
tundra
via
wiznet
xilinx net: ll_temac: Handle DMA halt condition caused by buffer underrun 2020-02-24 10:58:48 -08:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
fealnx.c
jme.c
jme.h
Kconfig
korina.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
lantiq_etop.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
lantiq_xrx200.c
Makefile