linux/drivers/net/ethernet/stmicro/stmmac
Stephen Boyd d1a55841ab net: Remove dev_err() usage after platform_get_irq()
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.

// <smpl>
@@
expression ret;
struct platform_device *E;
@@

ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);

if ( \( ret < 0 \| ret <= 0 \) )
{
(
-if (ret != -EPROBE_DEFER)
-{ ...
-dev_err(...);
-... }
|
...
-dev_err(...);
)
...
}
// </smpl>

While we're here, remove braces on if statements that only have one
statement (manually).

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: Saeed Mahameed <saeedm@mellanox.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: netdev@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-30 14:37:35 -07:00
..
altr_tse_pcs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
altr_tse_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
chain_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
common.h net: stmmac: add support for hash table size 128/256 in dwmac4 2019-07-09 14:17:59 -07:00
descs_com.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
descs.h net: stmmac: Fix misuses of GENMASK macro 2019-07-11 14:30:07 -07:00
dwmac4_core.c net: stmmac: add support for hash table size 128/256 in dwmac4 2019-07-09 14:17:59 -07:00
dwmac4_descs.c net: stmmac: Enable dwmac4 jumbo frame more than 8KiB 2019-07-04 12:33:12 -07:00
dwmac4_descs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
dwmac4_dma.c net: stmmac: add support for hash table size 128/256 in dwmac4 2019-07-09 14:17:59 -07:00
dwmac4_dma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 422 2019-06-05 17:37:15 +02:00
dwmac4_lib.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac4.h net: stmmac: add support for hash table size 128/256 in dwmac4 2019-07-09 14:17:59 -07:00
dwmac5.c net: stmmac: Add Flexible PPS support 2018-06-04 10:13:16 -04:00
dwmac5.h net: stmmac: Add Flexible PPS support 2018-06-04 10:13:16 -04:00
dwmac100_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac100_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac100.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac1000_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac1000_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwmac1000.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
dwmac_dma.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac_lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
dwmac-anarion.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 121 2019-05-24 17:39:02 +02:00
dwmac-dwc-qos-eth.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
dwmac-generic.c net: stmmac: Add the bindings parsing for XGMAC2 2018-08-09 11:16:28 -07:00
dwmac-ipq806x.c net: ethernet: stmmac: Clean up dead code 2017-10-08 21:19:07 -07:00
dwmac-lpc18xx.c
dwmac-mediatek.c net: stmmac: dwmac-mediatek: disable rx watchdog 2019-06-05 17:03:14 -07:00
dwmac-meson8b.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
dwmac-meson.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
dwmac-oxnas.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 446 2019-06-05 17:37:18 +02:00
dwmac-qcom-ethqos.c net: stmmac: Fix return value check in qcom_ethqos_probe() 2019-01-24 22:13:03 -08:00
dwmac-rk.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dwmac-socfpga.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-22 08:59:24 -04:00
dwmac-sti.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
dwmac-stm32.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 194 2019-05-30 11:29:22 -07:00
dwmac-sun8i.c net: stmmac: Fix misuses of GENMASK macro 2019-07-11 14:30:07 -07:00
dwmac-sunxi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
dwxgmac2_core.c net: stmmac: Add the missing speeds that XGMAC supports 2019-06-28 09:23:39 -07:00
dwxgmac2_descs.c net: stmmac: Enable support for > 32 Bits addressing in XGMAC 2019-06-28 09:23:39 -07:00
dwxgmac2_dma.c net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
dwxgmac2.h net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
enh_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
hwif.c net: stmmac: Switch MMC functions to HWIF callbacks 2019-05-24 13:45:56 -07:00
hwif.h net: stmmac: Fix descriptors address being in > 32 bits address space 2019-07-09 12:20:08 -07:00
Kconfig net: stmmac: Introducing support for Page Pool 2019-07-09 12:20:08 -07:00
Makefile net: stmmac: Introduce selftests support 2019-05-24 13:45:56 -07:00
mmc_core.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
mmc.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-06-17 20:20:36 -07:00
norm_desc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
ring_mode.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_ethtool.c net: stmmac: Implement RX Coalesce Frames setting 2019-07-09 12:20:08 -07:00
stmmac_hwtstamp.c net: stmmac: fixed new system time seconds value calculation 2019-06-22 16:16:23 -07:00
stmmac_main.c drivers: net: use flow block API 2019-07-09 14:38:50 -07:00
stmmac_mdio.c net: stmmac: Make MDIO bus reset optional 2019-07-27 13:52:26 -07:00
stmmac_pci.c net: stmmac: Make MDIO bus reset optional 2019-07-27 13:52:26 -07:00
stmmac_pcs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
stmmac_platform.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
stmmac_platform.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_ptp.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_ptp.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 291 2019-06-05 17:36:38 +02:00
stmmac_selftests.c net: stmmac: selftests: Use kfree_skb() instead of kfree() 2019-05-30 12:58:54 -07:00
stmmac_tc.c net: stmmac: Check if CBS is supported before configuring 2019-01-11 15:35:06 -08:00
stmmac.h net: stmmac: Introducing support for Page Pool 2019-07-09 12:20:08 -07:00