Minghao Chi
d7cf43edeb
alpha: remove redundant err variable
...
Return value from __hw_perf_event_init() directly instead
of taking this in another redundant variable.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: CGEL ZTE <[email protected] >
Signed-off-by: Matt Turner <[email protected] >
2023-02-14 12:36:10 -05:00
Minghao Chi
301cfbc124
power: supply: max1721x: Use strscpy() is more robust and safer
...
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL terminated strings.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Sebastian Reichel <[email protected] >
2023-02-03 13:58:41 +01:00
Minghao Chi
cd556e1e95
bus: imx-weim: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Reviewed-by: Marco Felsch <[email protected] >
Signed-off-by: Shawn Guo <[email protected] >
2022-12-31 15:21:04 +08:00
Minghao Chi
e88f319a25
rtc: ds1742: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected] >
2022-12-15 23:34:31 +01:00
Minghao Chi
33dc955c5a
thermal/drivers/st: Use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected] >
2022-12-14 15:25:41 +01:00
Minghao Chi
74d95352bd
can: c_can: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected] >
2022-12-12 11:39:12 +01:00
Minghao Chi
f359c3e579
mfd: stm32-lptimer: Use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-08 12:38:47 +00:00
Minghao Chi
65f15e43d9
mfd: fsl-imx25-tsadc: Use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Signed-off-by: Lee Jones <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-08 12:20:58 +00:00
Minghao Chi
7fc7f25419
PM / devfreq: event: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Signed-off-by: Chanwoo Choi <[email protected] >
2022-12-05 21:57:20 +09:00
Minghao Chi
0c44be0639
clk: qcom: hfpll: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Signed-off-by: Bjorn Andersson <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-12-01 17:26:40 -06:00
Minghao Chi
b53e19799d
phy: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2022-11-24 23:23:07 +05:30
Minghao Chi
8aa2e715ca
iio: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: ye xingchen <[email protected] >
Reviewed-by: Nuno Sá <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected] >
2022-11-23 20:41:23 +00:00
Minghao Chi
f8fd5f4813
ASoC: sunxi: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Samuel Holland <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-11-14 11:30:31 +00:00
Minghao Chi
8502bee558
i2c: imx: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Mukesh Ojha <[email protected] >
Reviewed-by: Uwe Kleine-König <[email protected] >
Signed-off-by: Wolfram Sang <[email protected] >
2022-11-12 21:24:48 +01:00
Minghao Chi
aebf1e26a8
ata: pata_ep93xx: use devm_platform_get_and_ioremap_resource()
...
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Sergey Shtylyov <[email protected] >
Signed-off-by: Damien Le Moal <[email protected] >
2022-11-12 10:58:56 +09:00
Minghao Chi
0badb2e46a
nilfs2: delete unnecessary checks before brelse()
...
Patch series "nilfs2 minor amendments".
This patch (of 2):
The brelse() inline function tests whether its argument is NULL and then
returns immediately. Thus remove the tests which are not needed around
the shown calls.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Ryusuke Konishi <[email protected] >
Cc: ye xingchen <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
2022-10-03 14:21:44 -07:00
Minghao Chi
f948ac2313
xen-netback: use kstrdup instead of open-coding it
...
use kstrdup instead of open-coding it.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Wei Liu <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2022-09-23 12:03:35 +01:00
Minghao Chi
110ae8a21b
drm: bridge/dw-hdmi-ahb-audio: use strscpy() is more robust and safer
...
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL terminated strings.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Neil Armstrong <[email protected] >
Signed-off-by: Neil Armstrong <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-09-20 08:59:13 +00:00
Minghao Chi
cba7543e15
fs/qnx6: delete unnecessary checks before brelse()
...
brelse() tests whether its argument is NULL and then returns immediately.
Thus remove the tests which are not needed around the shown calls.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Minghao Chi <[email protected] >
Reported-by: Zeal Robot <[email protected] >
Cc: CGEL ZTE <[email protected] >
Cc: Matthew Wilcox <[email protected] >
Cc: Minghao Chi <[email protected] >
Cc: Muchun Song <[email protected] >
Cc: Theodore Ts'o <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
2022-09-11 21:55:07 -07:00
Minghao Chi
dba908967d
staging: r8188eu: remove unnecessary null check
...
container_of is never null, so this null check is
unnecessary.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2022-08-24 15:14:17 +02:00
Minghao Chi (CGEL ZTE)
777aaf3d1d
clk: samsung: exynos-clkout: Use of_device_get_match_data()
...
Use of_device_get_match_data() to simplify the code.
Signed-off-by: Minghao Chi (CGEL ZTE) <[email protected] >
Signed-off-by: Krzysztof Kozlowski <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-08-23 08:51:49 +03:00
Minghao Chi
d4d361ad00
isofs: delete unnecessary checks before brelse()
...
The brelse() function tests whether its argument is NULL
and then returns immediately.
Thus remove the tests which are not needed around the shown calls.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Jan Kara <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-08-19 11:06:18 +02:00
Minghao Chi
60349fd52e
remoteproc: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Bjorn Andersson <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-07-18 15:32:34 -05:00
Minghao Chi
84117994bc
security/apparmor: remove redundant ret variable
...
Return value from nf_register_net_hooks() directly instead
of taking this in another redundant variable.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: CGEL ZTE <[email protected] >
Signed-off-by: John Johansen <[email protected] >
2022-07-09 15:13:59 -07:00
Minghao Chi
3e0fcb782a
i40e: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Tested-by: Gurucharan <[email protected] > (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <[email protected] >
2022-06-21 13:50:38 -07:00
Minghao Chi
05a2eebfa6
wifi: wfx: Remove redundant NULL check before release_firmware() call
...
release_firmware() checks for NULL pointers internally so checking
before calling it is redundant.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Jérôme Pouiller <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-06-10 10:38:55 +03:00
Minghao Chi
142d456204
ASoC: imx-audmux: remove unnecessary check of clk_disable_unprepare/clk_prepare_enable
...
Because clk_disable_unprepare/clk_prepare_enable already checked NULL clock
parameter, so the additional checks are unnecessary, just remove them.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Shengjiu Wang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-06-09 11:57:46 +01:00
Minghao Chi
20f038d074
drm/virtio: simplify the return expression
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected] >
2022-06-09 07:30:13 +02:00
Minghao Chi
12ba5ceb4a
ASoC: mediatek: remove unnecessary check of clk_disable_unprepare
...
Because clk_disable_unprepare already checked NULL clock
parameter, so the additional checks are unnecessary, just remove them.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-06-06 12:38:51 +01:00
Minghao Chi
ab37c305bf
gfs2: Remove redundant NULL check before kfree
...
kfree on NULL pointer is a no-op.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Andreas Gruenbacher <[email protected] >
2022-06-03 09:57:16 +02:00
Minghao Chi
2ef4bb24ff
pcmcia: Use platform_get_irq() to get the interrupt
...
It is not recommened to use platform_get_resource(pdev, IORESOURCE_IRQ)
for requesting IRQ's resources any more, as they can be not ready yet in
case of DT-booting.
platform_get_irq() instead is a recommended way for getting IRQ even if
it was not retrieved earlier.
It also makes code simpler because we're getting "int" value right away
and no conversion from resource to int is required.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Dominik Brodowski <[email protected] >
2022-05-28 09:25:31 +02:00
Minghao Chi
433302dd87
Input: omap4-keypad - switch to using pm_runtime_resume_and_get()
...
Use pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected] >
2022-05-27 21:38:32 -07:00
Minghao Chi
5bff56edab
ubifs: Simplify the return expression of run_gc()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Tudor Ambarus <[email protected] >
Signed-off-by: Richard Weinberger <[email protected] >
2022-05-27 16:21:20 +02:00
Minghao Chi (CGEL ZTE)
8a57c3cc2b
powerpc/platforms/83xx: Use of_device_get_match_data()
...
Use of_device_get_match_data() to simplify the code.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi (CGEL ZTE) <[email protected] >
Signed-off-by: Michael Ellerman <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-22 15:58:31 +10:00
Minghao Chi
40189b7368
video: fbdev: omapfb: simplify the return expression of nec_8048_connect()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Helge Deller <[email protected] >
2022-05-19 11:17:42 +02:00
Minghao Chi
b93a85c145
video: fbdev: omapfb: simplify the return expression of dsi_init_pll_data()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Helge Deller <[email protected] >
2022-05-19 11:16:49 +02:00
Minghao Chi
bce7a01ada
rtc: simplify the return expression of rx8025_set_offset()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Nobuhiro Iwamatsu <[email protected] >
Signed-off-by: Alexandre Belloni <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-18 00:18:19 +02:00
Minghao Chi
c157a606e7
i3c/master: simplify the return expression of i3c_hci_remove()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Alexandre Belloni <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-17 22:33:43 +02:00
Minghao Chi
845517ed04
RDMA/qedr: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Michal Kalderon <[email protected] >
Signed-off-by: Jason Gunthorpe <[email protected] >
2022-05-17 08:53:30 -03:00
Minghao Chi
d1e7f009bf
net: qede: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected] >
2022-05-17 13:04:16 +02:00
Minghao Chi
bd81bfb5a1
net: vxge: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected] >
2022-05-17 13:03:14 +02:00
Minghao Chi
29fd3ca177
qed: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected] >
2022-05-17 13:02:34 +02:00
Minghao Chi
aabd5fea49
scsi: ipr: Use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected] >
Acked-by: Brian King <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-05-16 21:32:16 -04:00
Minghao Chi
411dccf9d2
dmaengine: idxd: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Dave Jiang <[email protected] >
Signed-off-by: Vinod Koul <[email protected] >
2022-05-16 23:19:43 +05:30
Minghao Chi
d887ae3247
octeontx2-pf: Remove unnecessary synchronize_irq() before free_irq()
...
Calling synchronize_irq() right before free_irq() is quite useless. On one
hand the IRQ can easily fire again before free_irq() is entered, on the
other hand free_irq() itself calls synchronize_irq() internally (in a race
condition free way), before any state associated with the IRQ is freed.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2022-05-16 11:47:22 +01:00
Minghao Chi
e0c77eb37e
crypto: octeontx2 - simplify the return expression of otx2_cpt_aead_cbc_aes_sha_setkey()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
2022-05-13 17:24:48 +08:00
Minghao Chi
c96f824af0
mtd: rawnand: cs553x: simplify the return expression of cs553x_write_ctrl_byte()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Miquel Raynal <[email protected] >
Link: https://lore.kernel.org/linux-mtd/[email protected]
2022-05-12 16:43:03 +02:00
Minghao Chi
46ecf720f3
platform/x86: toshiba_acpi: use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Andy Shevchenko <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected] >
2022-05-12 15:37:53 +02:00
Minghao Chi
c8ad6a7680
platform/x86: samsung-laptop: use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Andy Shevchenko <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected] >
2022-05-12 15:37:53 +02:00
Minghao Chi
e090532246
drm/bridge: simplify the return expression of ps8640_bridge_host_attach
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Douglas Anderson <[email protected] >
Signed-off-by: Douglas Anderson <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-05-10 11:18:12 -07:00
Minghao Chi
517f6e2641
nvmem: qfprom: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Srinivas Kandagatla <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2022-05-09 15:45:39 +02:00
Minghao Chi
5cb3bdd6bd
ASoC: pcm186x: simplify the return expression of pcm186x_power_off()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-05-09 12:48:43 +01:00
Minghao Chi
74eaa8126f
ASoC: mediatek: simplify the return expression of mtk_dai_pcm_prepare()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-05-09 12:48:42 +01:00
Minghao Chi
ef1258a782
ASoC: uniphier: simplify the return expression of uniphier_aio_compr_set_params()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-05-09 12:48:41 +01:00
Minghao Chi
ec194bdbc5
ata: simplify the return expression of brcm_ahci_remove
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Damien Le Moal <[email protected] >
2022-05-09 20:36:00 +09:00
Minghao Chi
38c1c73670
drm/amdgpu: simplify the return expression of vega10_ih_hw_init()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-05-05 16:50:22 -04:00
Minghao Chi
3f92a7d828
drm/amdgpu: simplify the return expression
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-05-05 16:50:20 -04:00
Minghao Chi
0e1759b60f
drm: simplify the return expression of ast_drm_resume()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Acked-by: Thomas Zimmermann <[email protected] >
Signed-off-by: Thomas Zimmermann <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-05-05 09:18:54 +02:00
Minghao Chi
d96a89407e
power: supply: bq24190_charger: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Sebastian Reichel <[email protected] >
2022-05-04 23:44:03 +02:00
Minghao Chi
a181b8d187
i2c: davinci: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Bartosz Golaszewski <[email protected] >
Signed-off-by: Wolfram Sang <[email protected] >
2022-05-04 22:40:35 +02:00
Minghao Chi
364d453f4d
drm/amdgpu: simplify the return expression of navi10_ih_hw_init()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-05-04 09:53:28 -04:00
Minghao Chi
3453677aea
drm/amdgpu: simplify the return expression of iceland_ih_hw_init
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Alex Deucher <[email protected] >
2022-05-04 09:53:18 -04:00
Minghao Chi
0e8bb6666e
mmc: core: use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected] >
2022-05-04 11:53:44 +02:00
Minghao Chi
e9bb94cde1
macintosh/ams: Remove unneeded result variable
...
Return the value from i2c_add_driver() directly instead of storing it in
another redundant variable.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: CGEL ZTE <[email protected] >
Signed-off-by: Christophe Leroy <[email protected] >
Signed-off-by: Michael Ellerman <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-04 19:37:45 +10:00
Minghao Chi
2b7042500c
soc: ti: pm33xx: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Nishanth Menon <[email protected] >
Reviewed-by: Tony Lindgren <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-03 06:58:10 -05:00
Minghao Chi
ce4818957f
genirq: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
pm_runtime_resume_and_get() achieves the same and simplifies the code.
[ tglx: Simplify it further by presetting retval ]
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Thomas Gleixner <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-05-02 14:08:08 +02:00
Minghao Chi
ce7deda0d5
net/funeth: simplify the return expression of fun_dl_info_get()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
2022-04-30 13:56:02 +01:00
Minghao Chi
ab7671282b
drm/nouveau: simplify the return expression of nouveau_debugfs_init()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Reviewed-by: Lyude Paul <[email protected] >
[fixed an indenting error before pushing]
Signed-off-by: Lyude Paul <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-04-29 15:44:54 -04:00
Minghao Chi
a425e9802d
drm/vc4: simplify the return expression of vc4_grab_bin_bo()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-04-29 16:27:35 +02:00
Minghao Chi
f2a28a83f6
drm/vc4: simplify the return expression of vc4_prepare_fb()
...
Simplify the return expression.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Maxime Ripard <[email protected] >
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2022-04-29 16:26:56 +02:00
Minghao Chi
d3bae86698
crypto: sun8i-ce - using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Tested-by: Corentin Labbe <[email protected] >
Acked-by: Corentin Labbe <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
2022-04-29 13:44:57 +08:00
Minghao Chi
ee74fdf0ca
crypto: sun8i-ss - using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Herbert Xu <[email protected] >
2022-04-29 13:44:57 +08:00
Minghao Chi
242e85a7a0
platform/x86: asus-wmi: Use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected] >
2022-04-27 16:50:25 +02:00
Minghao Chi
0eb369bf48
platform/x86/intel: pmc/core: Use kobj_to_dev()
...
Use kobj_to_dev() instead of open-coding it.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected] >
2022-04-27 16:50:25 +02:00
Minghao Chi
75b8715e20
scsi: ufs: Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync() and
pm_runtime_put_noidle(). This change is just to simplify the code, no
actual functional changes.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Martin K. Petersen <[email protected] >
2022-04-26 22:24:27 -04:00
Minghao Chi
1af2fb6283
spi: stm32: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:01:08 +01:00
Minghao Chi
b7be05d5e4
spi: spi-cadence-quadspi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:01:07 +01:00
Minghao Chi
1e6f8bd15c
spi: spi-tegra20-slink: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:01:06 +01:00
Minghao Chi
2b8070840e
spi: spi-tegra20-sflash: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:01:03 +01:00
Minghao Chi
40b6a13771
spi: spi-omap2-mcspi: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:01:00 +01:00
Minghao Chi
32831bf569
spi: mxs: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:00:59 +01:00
Minghao Chi
7d34ff58f3
spi: spi-imx: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:00:58 +01:00
Minghao Chi
b9db82e5f2
spi: spi-sprd: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:00:57 +01:00
Minghao Chi
e5737cceee
ASoC: img-i2s-in: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:00:23 +01:00
Minghao Chi
9470aa1c46
ASoC: img-parallel-out: using pm_runtime_resume_and_get
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 14:00:22 +01:00
Minghao Chi
b1d1b02594
ASoC: img-spdif-out: using pm_runtime_resume_and_get to simplify the code
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 13:59:04 +01:00
Minghao Chi
6eaaf9bd9b
ASoC: img-spdif-in: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 13:59:03 +01:00
Minghao Chi
d05040741a
ASoC: fsl_asrc: using pm_runtime_resume_and_get to simplify the code
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected] >
2022-04-25 13:59:00 +01:00
Minghao Chi
c94e369084
wl12xx: scan: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 15:46:13 +03:00
Minghao Chi
54d5ecc171
wl12xx: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 15:45:49 +03:00
Minghao Chi
8e95061b5b
wl18xx: debugfs: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 15:43:27 +03:00
Minghao Chi
45286070e9
wil6210: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() is more appropriate
for simplifing code.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 12:31:48 +03:00
Minghao Chi
e05c7ddfeb
wlcore: cmd: using pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:12:31 +03:00
Minghao Chi
00bfc8964f
wlcore: sdio: using pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get() to replace pm_runtime_get_sync and
pm_runtime_put_noidle. This change is just to simplify the code, no
actual functional changes.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:12:13 +03:00
Minghao Chi
d8e11976d8
wlcore: vendor_cmd: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:11:58 +03:00
Minghao Chi
3447eebe60
wlcore: testmode: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:11:34 +03:00
Minghao Chi
da8e909c99
wlcore: sysfs: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:11:18 +03:00
Minghao Chi
ab589ac24e
wlcore: main: use pm_runtime_resume_and_get() instead of pm_runtime_get_sync()
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-23 10:08:09 +03:00
Minghao Chi
3196a60565
clk: using pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate
for simplifing code
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
[[email protected] : Drop local ret variable too]
Signed-off-by: Stephen Boyd <[email protected] >
2022-04-22 19:03:00 -07:00
Minghao Chi
12eeb74925
soc: ti: knav_qmss_queue: Use pm_runtime_resume_and_get instead of pm_runtime_get_sync
...
Using pm_runtime_resume_and_get is more appropriate for simplifying
code.
Reported-by: Zeal Robot <[email protected] >
Signed-off-by: Minghao Chi <[email protected] >
Signed-off-by: Nishanth Menon <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
2022-04-22 18:12:06 -05:00