linux-bl808/drivers/net/can
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
..
c_can
cc770
ifi_canfd
m_can can: tcan4x5x: Add tcan4x5x driver to the kernel 2019-07-24 10:31:54 +02:00
mscan
peak_canfd can: mark expected switch fall-throughs 2019-07-24 10:31:54 +02:00
rcar net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
sja1000 can: sja1000: f81601: add Fintek F81601 support 2019-07-24 10:30:37 +02:00
softing
spi can: mark expected switch fall-throughs 2019-07-24 10:31:54 +02:00
usb can: mark expected switch fall-throughs 2019-07-24 10:31:54 +02:00
at91_can.c can: mark expected switch fall-throughs 2019-07-24 10:31:54 +02:00
dev.c
flexcan.c can: flexcan: add support for DT property 'wakeup-source' 2019-07-24 10:31:55 +02:00
grcan.c
janz-ican3.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
Kconfig can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
kvaser_pciefd.c can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
led.c
Makefile can: kvaser_pciefd: Add driver for Kvaser PCIEcan devices 2019-07-24 10:31:53 +02:00
pch_can.c
rx-offload.c
slcan.c
sun4i_can.c net: Remove dev_err() usage after platform_get_irq() 2019-07-30 14:37:35 -07:00
ti_hecc.c can: ti_hecc: use timestamp based rx-offloading 2019-07-24 10:31:55 +02:00
vcan.c
vxcan.c
xilinx_can.c can: xilinx_can: clean up indentation issue 2019-07-24 10:31:55 +02:00