linux/drivers/staging
Stephen Boyd 04d15d5cad staging: 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).

Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/20190730181557.90391-43-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-30 20:50:04 +02:00
..
android staging: android: ion: Remove unused rbtree for ion_buffer 2019-07-25 09:44:36 +02:00
axis-fifo
board
clocking-wizard
comedi staging: comedi: daqboard2000: Remove function db2k_initialize_dac() 2019-07-25 09:48:14 +02:00
emxx_udc staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
erofs staging: erofs: support bmap 2019-07-22 07:34:15 +02:00
fbtft Staging: fbtft: Fix some typo. pdc8544 --> pcd8544 2019-07-30 09:52:04 +02:00
fieldbus Staging / IIO driver update for 5.3-rc1 2019-07-11 15:36:02 -07:00
fsl-dpaa2 staging: fsl-dpaa2/ethsw: add .ndo_fdb[add|del] callbacks 2019-07-30 18:46:54 +02:00
fwserial
gasket
gdm724x
goldfish staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
greybus staging: greybus: remove redundant assignment to variable is_empty 2019-07-22 07:34:10 +02:00
gs_fpgaboot
iio Second set of IIO device support, features, cleanups and minor fixes for 5.3. 2019-07-01 10:58:13 +02:00
isdn
kpc2000 staging: kpc2000: Convert put_page() to put_user_page*() 2019-07-30 09:54:48 +02:00
ks7010
media staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
most staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
mt7621-dma staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
mt7621-dts staging: mt7621-dts: add support for second network interface 2019-07-03 18:28:29 +02:00
mt7621-pci staging: mt7621-pci: avoid use 'err' local variable 2019-07-25 09:58:26 +02:00
mt7621-pci-phy
mt7621-pinctrl staging: mt7621-pinctrl: Add of_node_put() before return 2019-07-22 07:34:15 +02:00
netlogic staging: netlogic: Change GFP_ATOMIC to GFP_KERNEL 2019-07-01 09:07:03 +02:00
nvec staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
octeon
octeon-usb
olpc_dcon staging: olpc_dcon: Remove TODO item 2019-07-30 09:52:04 +02:00
pi433
ralink-gdma staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
rtl8188eu staging: rtl8188eu: cleanup comparsion to NULL in usb_halinit.c 2019-07-30 09:58:23 +02:00
rtl8192e Staging: rtl8192e: fixed a function prototype definition issue 2019-07-30 09:54:48 +02:00
rtl8192u staging: rtl8192*: display ESSIDs using %pE 2019-07-25 14:38:52 +02:00
rtl8712 staging: rtl8712: r8712_free_recvframe(): Change return type 2019-07-25 09:52:01 +02:00
rtl8723bs staging: rtl8723bs: os_dep: remove two set but not used variables 2019-07-30 09:52:03 +02:00
rts5208 staging: rts5208: Simplify boolean expression to improve code style 2019-07-01 09:05:21 +02:00
sm750fb
speakup
unisys docs: driver-model: move it to the driver-api book 2019-07-15 11:03:02 -03:00
vc04_services staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
vme
vt6655
vt6656 staging: vt6656: change alignment to match parenthesis 2019-07-22 07:34:15 +02:00
wilc1000 staging: wilc1000: remove manual sleep mode 2019-07-30 09:56:46 +02:00
wlan-ng staging: wlan-ng: use "%*pE" for serial number 2019-07-22 07:34:12 +02:00
Kconfig
Makefile