The function devm_platform_ioremap_resource has already contained
error message if failed, so remove superfluous dev_err here.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/codecs/jz4770.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/sound/soc
The function devm_platform_ioremap_resource has already contained
error message, so remove the redundant dev_err here.
Signed-off-by: Tang Bin
---
Changes from v1
- to streamline the code.
---
sound/soc/codecs/jz4760.c | 7 ++-
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git
In this function, devm_platform_ioremap_resource_byname() should be
suitable to simplify code.
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_xcvr.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c
index 6dd0a5fcd455
The function devm_platform_ioremap_resource has already contained error
message, so remove the redundant dev_err here.
Signed-off-by: Tang Bin
---
sound/soc/codecs/jz4760.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c
index
In the function tap_get_user, the assignment of 'err' at both places
is redundant, so remove one.
Signed-off-by: Tang Bin
---
drivers/net/tap.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/tap.c b/drivers/net/tap.c
index 1f4bdd944..3e9c72738 100644
The function devm_platform_ioremap_resource has already contains error
message, so remove the redundant dev_err here.
Signed-off-by: Tang Bin
---
drivers/thermal/amlogic_thermal.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/thermal/amlogic_thermal.c
b/drivers
The file virtio_mmio.c has defined the function to_virtio_mmio_device,
so use it instead of container_of() to simply code.
Signed-off-by: Tang Bin
---
Changes from v1
- Separate the patch with style changes.
---
drivers/virtio/virtio_mmio.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions
Dear Jason:
Sorry for the late reply this email.
在 2021/2/10 16:09, Jason Wang 写道:
On 2021/2/10 上午11:04, Tang Bin wrote:
The file virtio_mmio.c has defined the function to_virtio_mmio_device,
so use it instead of container_of() to simply code. And remove
superfluous blank lines
The function meson_crypto_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.
Signed-off-by: Tang Bin
---
drivers/crypto/amlogic/amlogic-gxl-core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers
The file virtio_mmio.c has defined the function to_virtio_mmio_device,
so use it instead of container_of() to simply code. And remove
superfluous blank lines in this file.
Signed-off-by: Tang Bin
---
drivers/virtio/virtio_mmio.c | 16 +---
1 file changed, 1 insertion(+), 15
Utilize the defined parameter 'dev' to make the code cleaner.
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_spdif.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c
index 455f96908..b6d5563df 100644
--- a/sound
In the word 'THREAD_NOFTIFY_SWTICH','SWTICH' is wrong,
thus fix it.
Signed-off-by: Tang Bin
---
arch/arm/vfp/vfpmodule.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/vfp/vfpmodule.c b/arch/arm/vfp/vfpmodule.c
index 8c9e7f9f0..dd0b875bc 100644
--- a/arch/arm/vfp
The world 'swtich' is wrong, so fix it.
Signed-off-by: Tang Bin
---
arch/sh/boards/mach-landisk/irq.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/sh/boards/mach-landisk/irq.c
b/arch/sh/boards/mach-landisk/irq.c
index 29b8b1f85..0b672b80c 100644
--- a/arch/sh
在 2020/10/26 23:05, Alan Stern 写道:
On Mon, Oct 26, 2020 at 05:06:57PM +0800, Tang Bin wrote:
If the function platform_get_irq() failed, the negative value
returned will not be detected here. So fix error handling in
tegra_ehci_probe().
Fixes: 79ad3b5add4a ("usb: host: Add EHCI d
If the function platform_get_irq() failed, the negative value
returned will not be detected here. So fix error handling in
tegra_ehci_probe().
Fixes: 79ad3b5add4a ("usb: host: Add EHCI driver for NVIDIA Tegra SoCs")
Signed-off-by: Tang Bin
---
drivers/usb/host/ehci-tegra.c | 6 +++-
When call function devm_platform_ioremap_resource(), we should use
IS_ERR() to check the return value and return PTR_ERR() if failed,
and it can print an error message itself if failed. So remove the
redundant dev_err() in this place.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
Hi
在 2020/9/28 19:23, Greg KH 写道:
On Mon, Sep 28, 2020 at 06:55:26PM +0800, Tang Bin wrote:
Hi Balbi:
在 2020/9/28 17:40, Felipe Balbi 写道:
Hi,
Tang Bin writes:
Hi Greg KH:
在 2020/9/27 21:45, Greg KH 写道:
On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote:
In this function, we don't
Hi Balbi:
在 2020/9/28 17:40, Felipe Balbi 写道:
Hi,
Tang Bin writes:
Hi Greg KH:
在 2020/9/27 21:45, Greg KH 写道:
On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote:
In this function, we don't need dev_err() message because
when something goes wrong, devm_platform_ioremap_resource()
can
Hi all:
在 2020/9/24 18:37, Felipe Balbi 写道:
Thierry Reding writes:
On Thu, Sep 24, 2020 at 10:26:15AM +0300, Felipe Balbi wrote:
Tang Bin writes:
Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to
simplify code, avoid redundant judgements.
Signed-off-by: Zhang Shengju
Signed
Hi Greg KH:
在 2020/9/27 21:45, Greg KH 写道:
On Sun, Sep 27, 2020 at 09:42:18PM +0800, Tang Bin wrote:
In this function, we don't need dev_err() message because
when something goes wrong, devm_platform_ioremap_resource()
can print an error message itself, so remove the redundant
one.
Signed-off
在 2020/9/28 14:49, Chunfeng Yun 写道:
On Sun, 2020-09-27 at 21:42 +0800, Tang Bin wrote:
In this function, we don't need dev_err() message because
when something goes wrong, devm_platform_ioremap_resource()
can print an error message itself, so remove the redundant
one.
Signed-off-by: Zhang
Delete unused initialized value of 'ret', because it will
be assigned by the function clk_prepare_enable().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/gadget/udc
In this function, we don't need dev_err() message because
when something goes wrong, devm_platform_ioremap_resource()
can print an error message itself, so remove the redundant
one.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/gadget/udc/bdc/bdc_core.c | 4 +---
1 file
In the function ipq8064_mdio_probe(), of_mdiobus_register() might
returned zero, so the direct return can simplify code. Thus remove
redundant parameter and check.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/mdio/mdio-ipq8064.c | 8 ++--
1 file changed, 2
Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to
simplify code, avoid redundant judgements.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/phy/phy-tegra-usb.c | 25 ++---
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/drivers
Use IS_ERR_OR_NULL() to make the code cleaner.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
arch/arm/mach-omap1/clock.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index bd5be8210
Hi Mark
在 2020/8/27 0:53, Mark Brown 写道:
On Wed, Aug 26, 2020 at 11:09:18PM +0800, Tang Bin wrote:
The function fsl_spdif_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.
Why is this an issue - the check
The function fsl_spdif_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_spdif.c | 3 ---
1 file changed, 3 deletions(-)
diff --git
msung Exynos OHCI diver")
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/host/ohci-exynos.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c
index bd40e597f..5f5e8a64c 100644
--- a/d
In the function usb_add_hcd(), usb_phy_roothub_alloc()
can return NULL in some cases, so IS_ERR() doesn't meet
the requirements. Thus fix it.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/core/hcd.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
?
Thanks for you reply, the benefit of this patch is simplify the code,
because in
this function, I don't think the situation of 'devm_clk_get() return
NULL' exists.
So please think about it, thanks.
Tang Bin
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net
In the function ath10k_ahb_clock_init(), devm_clk_get() doesn't
return NULL. Thus use IS_ERR() and PTR_ERR() to validate
the returned value instead of IS_ERR_OR_NULL().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/wireless/ath/ath10k/ahb.c | 12 ++--
1 file
Use the defined variable "dev" to make the code cleaner.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/qcom/qdsp6/q6adm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/qcom/qdsp6/q6adm.c b/sound/soc/qcom/qdsp6/q6adm.c
index
In the function q6adm_open(), q6adm_alloc_copp() doesn't return
NULL. Thus use IS_ERR() to validate the returned value instead
of IS_ERR_OR_NULL(). And delete the extra line.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/qcom/qdsp6/q6adm.c | 3 +--
1 file changed, 1
The variable 'err = -ENODEV;' in au1000_probe() is
duplicate, so remove redundant one. And remove the
extra blank lines in the file au1000_eth.c
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 5 -
1 file changed, 5 deletions(-)
diff --git
itial S5P EHCI driver")
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/host/ehci-exynos.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c
index a4e9abcbd..1a9b7572e 100644
--- a/d
In the function tegra_usb_phy_probe(), if usb_add_phy_dev() failed,
the return value will be given to err, and if usb_add_phy_dev() succeed,
the return value will be zero. Thus it is unnecessary to repeated check
here.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/phy
The macros in phy-tegra-usb.c have inconsistent sapces between
the macro name and the value. Thus sets all the macros to have
a signal space between the name and value.
Signed-off-by: Tang Bin
---
drivers/usb/phy/phy-tegra-usb.c | 214
1 file changed, 107
There is a word spelling mistake of 'Unegisters', thus
it should be fixed.
Signed-off-by: Tang Bin
---
drivers/base/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 7fa654f12..15ae9428a 100644
--- a/drivers
t;)
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/sgi/ioc3-eth.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c
b/drivers/net/ethernet/sgi/ioc3-eth.c
index db6b2988e..8021a3d34 100644
--- a/d
is where these changes should be targetted. Please respin.
Can you tell me which one is useless, I will drop and not put it in the
patches set.
Thanks,
Tang Bin
Simplifies assertions for errors.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c
b/drivers/net/ethernet/amd/au1000_eth.c
index
It looks better and has improved readability without additional
line breaks.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c
b/drivers/net
Delete unused initialized value of 'err', because it will
be assigned by the function mdiobus_register(). And the
variable 'err = -ENODEV' is duplicate, so remove redundant
one.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 3 +--
1 file
The macros in au1000_eth.c have inconsistent spaces between the
macro name and the value. Thus sets all the macros to have a signal
space between the name and value.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 172
Remove the extra blank lines in the file au1000_eth.c
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/amd/au1000_eth.c | 5 -
1 file changed, 5 deletions(-)
diff --git a/drivers/net/ethernet/amd/au1000_eth.c
b/drivers/net/ethernet/amd/au1000_eth.c
index
Delete unused initialized value of 'ret', because it will
be assigned by the function fsl_micfil_set_mclk_rate().
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_micfil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
In the function fsl_micfil_startup(), the two lines of dev_err()
can be shortened to one line.
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_micfil.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
index f7f2d29f1
On 2020/5/18 18:25, Mark Brown wrote:
On Mon, May 18, 2020 at 03:44:05PM +0800, Tang Bin wrote:
In the function fsl_micfil_startup(), the two lines of dev_err()
can be shortened to one line. And delete unused initialized value
of 'ret', because it will be assigned by the function
In the function fsl_micfil_startup(), the two lines of dev_err()
can be shortened to one line. And delete unused initialized value
of 'ret', because it will be assigned by the function
fsl_micfil_set_mclk_rate().
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_micfil.c | 5 ++---
1 file changed
negative, why not just modify the variables in the 'struct usb_hcd',
'unsigned int irq'--> 'int irq'? After all, it's a public one.
Thanks,
Tang Bin
Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to
simplify code, avoid redundant judgements.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
Reviewed-by: Leon Romanovsky
---
Changes from v1
- fix the commit message for typo.
---
drivers/net/ethernet/mellanox/mlx5/core/en
Hi Saeed:
On 2020/5/16 6:28, Saeed Mahameed wrote:
On Wed, 2020-05-13 at 17:48 +0800, Tang Bin wrote:
Hi David:
On 2020/5/8 4:18, David Miller wrote:
From: Tang Bin
Date: Thu, 7 May 2020 19:50:10 +0800
Use IS_ERR() and PTR_ERR() instead of PTR_ZRR_OR_ZERO
Hi Corey:
On 2020/5/5 19:49, Corey Minyard wrote:
On Tue, May 05, 2020 at 06:29:06PM +0800, Tang Bin wrote:
Ok, this is included in my tree.
I just checked that this patch has been merged into the linux-next
branch, and I saw the modification of you
by this patch. I have learned a lot
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing platform_get_irq(), thus fix it.
Fixes: 7e8d5cd93fa ("USB: Add EHCI support for MX27 and MX31 based boards")
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
Changes from v1
- fix t
Hi gregkh:
On 2020/5/8 21:51, Alan Stern wrote:
On Fri, 8 May 2020, Tang Bin wrote:
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing platform_get_irq(), thus fix it.
Aside from the "irq <= 0" issue, the Subject: line should
Omit unused initialized value, because 'ret' will be assigined
by the function snd_soc_component_read().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/fsl/fsl_audmix.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_audmix.c b
Hi David:
On 2020/5/8 4:18, David Miller wrote:
From: Tang Bin
Date: Thu, 7 May 2020 19:50:10 +0800
Use IS_ERR() and PTR_ERR() instead of PTR_ZRR_OR_ZERO()
to simplify code, avoid redundant judgements.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
Saeed, please pick this up
Hi Sergei:
On 2020/5/9 4:27, Sergei Shtylyov wrote:
On 05/08/2020 06:03 PM, Tang Bin wrote:
On Fri, May 08, 2020 at 07:44:53PM +0800, Tang Bin wrote:
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing platform_get_irq(), thus fix it.
Fixes
On 2020/5/8 22:31, Greg KH wrote:
On Fri, May 08, 2020 at 09:55:53PM +0800, Tang Bin wrote:
Hi, Greg:
On 2020/5/8 19:48, Greg KH wrote:
On Fri, May 08, 2020 at 07:44:53PM +0800, Tang Bin wrote:
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing
Use the defined variable "dev" to make the code cleaner. And
delete an extra blank line.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
Changes from v1:
- fix the subject and the code.
---
drivers/usb/host/ehci-mxc.c | 13 ++---
1 file changed, 6 insertions(+), 7
On 2020/5/8 21:56, Alan Stern wrote:
On Fri, 8 May 2020, Tang Bin wrote:
Use the defined variable "dev" to make the code cleaner. And
delete an extra blank line.
Again, the Subject: line should say "ehci-mxc".
Got it.
Signed-off-by: Zhang Shengju
Signed-off-by: Tan
Delete unused initialized value, because 'retval' will be assigined
by the function mv_ehci_enable(). And delete the extra blank lines.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
Changes from v1
- fix the commit message.
---
drivers/usb/host/ehci-mv.c | 4 +---
1 file changed, 1
On 2020/5/8 21:49, Alan Stern wrote:
On Fri, 8 May 2020, Tang Bin wrote:
Delete unused initialized value, because 'retval' will be assigined
by the function mv_ehci_enable().
This should also mention the extra blank line that the patch removes.
Sorry, my mistake, I'll send v2 for you
Hi, Greg:
On 2020/5/8 19:48, Greg KH wrote:
On Fri, May 08, 2020 at 07:44:53PM +0800, Tang Bin wrote:
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing platform_get_irq(), thus fix it.
Fixes: 7e8d5cd93fa ("USB: Add EHCI support for MX27 and
Use the defined variable "dev" to make the code cleaner. And
delete an extra blank line.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/host/ehci-mxc.c | 9 -
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/host/ehci-mxc.c b/d
The function ehci_mxc_drv_probe() does not perform sufficient error
checking after executing platform_get_irq(), thus fix it.
Fixes: 7e8d5cd93fa ("USB: Add EHCI support for MX27 and MX31 based boards")
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/host/ehci
Delete unused initialized value, because 'retval' will be assigined
by the function mv_ehci_enable().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/usb/host/ehci-mv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/host/ehci-mv.c b/drivers
-by: Tang Bin
---
drivers/usb/host/ehci-mv.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c
index 1c079953e..b2da62bfd 100644
--- a/drivers/usb/host/ehci-mv.c
+++ b/drivers/usb/host/ehci-mv.c
@@ -166,9 +166,8 @@ static
Use IS_ERR() and PTR_ERR() instead of PTR_ZRR_OR_ZERO()
to simplify code, avoid redundant judgements.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers
The function PTR_ERR_OR_ZERO() contains the check of
IS_ERR() and the return of PTR_ERR() or zero.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/dca/dca-sysfs.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/dca/dca-sysfs.c b/drivers/dca/dca
Signed-off-by: Tang Bin
---
sound/soc/mediatek/mt6797/mt6797-afe-pcm.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
b/sound/soc/mediatek/mt6797/mt6797-afe-pcm.c
index 378bfc16e..a621dcf91 100644
--- a/sound/soc/mediatek/mt6797
. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Tang-Bin/ASoC-qcom-Use-devm_platform_ioremap_resource_byname-to-simplify-code/20200505-051041
base: https
Hi, Corey:
On 2020/5/5 19:49, Corey Minyard wrote:
On Tue, May 05, 2020 at 06:29:06PM +0800, Tang Bin wrote:
If the function platform_get_irq() failed, the negative value
returned will not be detected here. So fix error handling in
bt_bmc_config_irq(). And in the function bt_bmc_probe(),
when
Hi, Corey:
On 2020/4/19 14:29, Tang Bin wrote:
Hi, Corey:
On 2020/4/18 21:49, Corey Minyard wrote:
On Sat, Apr 18, 2020 at 04:02:29PM +0800, Tang Bin wrote:
If the function platform_get_irq() failed, the negative
value returned will not be detected here. So fix error
handling
It's not necessary to specify 'void const __force *' casting
for 'drvdata->lpaif'.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/qcom/lpass-cpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/qcom/lpass-cpu.c b/sound/soc/qcom/lp
Use devm_platform_ioremap_resource_byname() instead of
platform_get_resource_byname() + devm_ioremap_resource().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/qcom/lpass-cpu.c | 6 ++
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/sound/soc/qcom/lpass
Use the defined variable "dev" to make the code cleaner.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/qcom/lpass-apq8016.c | 9
sound/soc/qcom/lpass-cpu.c | 39 --
2 files changed, 22 insertions(+), 26 deletions(-)
On 2020/5/1 19:37, Joerg Roedel wrote:
On Sat, Apr 18, 2020 at 09:47:03PM +0800, Tang Bin wrote:
The function qcom_iommu_device_probe() does not perform sufficient
error checking after executing devm_ioremap_resource(), which can
result in crashes if a critical error path is encountered
The function ftmac100_probe() is only called with an openfirmware
platform device. Therefore there is no need to check that the passed
in device is NULL.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/faraday/ftmac100.c | 3 ---
1 file changed, 3 deletions
Delete unused initialized value in ftgmac100.c file.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
drivers/net/ethernet/faraday/ftgmac100.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c
b/drivers/net/ethernet
Add variable 'dev' to make the code cleaner in the function
mxs_saif_probe(). And now that the function mxs_saif_mclk_init()
have defined the variables 'ret' as the error returned value,
then it should be used instead in this place.
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
Delete unused initialized value, because 'ret' will be assigined
by the function of_alias_get_id().
Signed-off-by: Zhang Shengju
Signed-off-by: Tang Bin
---
sound/soc/mxs/mxs-saif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/mxs/mxs-saif.c b/sound/soc/mxs/mxs
83 matches
Mail list logo