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>
Showing
- drivers/net/can/janz-ican3.c 0 additions, 1 deletiondrivers/net/can/janz-ican3.c
- drivers/net/can/rcar/rcar_can.c 0 additions, 1 deletiondrivers/net/can/rcar/rcar_can.c
- drivers/net/can/rcar/rcar_canfd.c 0 additions, 2 deletionsdrivers/net/can/rcar/rcar_canfd.c
- drivers/net/can/sun4i_can.c 0 additions, 1 deletiondrivers/net/can/sun4i_can.c
- drivers/net/ethernet/amd/au1000_eth.c 0 additions, 1 deletiondrivers/net/ethernet/amd/au1000_eth.c
- drivers/net/ethernet/amd/xgbe/xgbe-platform.c 3 additions, 11 deletionsdrivers/net/ethernet/amd/xgbe/xgbe-platform.c
- drivers/net/ethernet/apm/xgene-v2/main.c 1 addition, 3 deletionsdrivers/net/ethernet/apm/xgene-v2/main.c
- drivers/net/ethernet/apm/xgene/xgene_enet_main.c 1 addition, 4 deletionsdrivers/net/ethernet/apm/xgene/xgene_enet_main.c
- drivers/net/ethernet/aurora/nb8800.c 1 addition, 3 deletionsdrivers/net/ethernet/aurora/nb8800.c
- drivers/net/ethernet/broadcom/bgmac-platform.c 1 addition, 3 deletionsdrivers/net/ethernet/broadcom/bgmac-platform.c
- drivers/net/ethernet/cortina/gemini.c 1 addition, 3 deletionsdrivers/net/ethernet/cortina/gemini.c
- drivers/net/ethernet/davicom/dm9000.c 0 additions, 2 deletionsdrivers/net/ethernet/davicom/dm9000.c
- drivers/net/ethernet/hisilicon/hisi_femac.c 0 additions, 1 deletiondrivers/net/ethernet/hisilicon/hisi_femac.c
- drivers/net/ethernet/lantiq_xrx200.c 2 additions, 8 deletionsdrivers/net/ethernet/lantiq_xrx200.c
- drivers/net/ethernet/nuvoton/w90p910_ether.c 0 additions, 2 deletionsdrivers/net/ethernet/nuvoton/w90p910_ether.c
- drivers/net/ethernet/qualcomm/emac/emac.c 1 addition, 4 deletionsdrivers/net/ethernet/qualcomm/emac/emac.c
- drivers/net/ethernet/socionext/sni_ave.c 1 addition, 3 deletionsdrivers/net/ethernet/socionext/sni_ave.c
- drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c 1 addition, 6 deletionsdrivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c
- drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c 1 addition, 6 deletionsdrivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
- drivers/net/wireless/mediatek/mt76/mt7603/soc.c 1 addition, 3 deletionsdrivers/net/wireless/mediatek/mt76/mt7603/soc.c
Loading
Please register or sign in to comment