From: Wei Yongjun
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun
---
mm/slab.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/mm/slab.c b/mm/slab.c
index 32c2296..cc6d816 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3452,8 +3452,7
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Remove duplicated include.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
arch/x86/platform/ce4100/ce4100.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/platform/ce4100/ce4100.c
b/arch/x86/platform/c
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/x86/platform/ce4100/ce4100.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/platform/ce4100/ce4100.c
b/arch/x86/platform/ce4100/ce4100.c
index 7ab4d3f..b27bccd 100644
--- a/arch/x86/platform
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/gpu/drm/arc/arcpgu_drv.c | 4 +---
1
From: Wei Yongjun
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/arc/arcpgu_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Remove duplicated include.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
arch/x86/kernel/apic/probe_64.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/kernel/apic/probe_64.c b/arch/x86/kernel/apic/prob
From: Wei Yongjun
Using list_move() instead of list_del() + list_add().
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/x86/kernel/apic/probe_64.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/kernel/apic/probe_64.c b/arch/x86/kernel/apic/probe_64.c
index d4880a3..c303054 100644
--- a/arch/x86/kernel/apic/probe_64.c
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/mtd/spi-nor/atmel-quadspi.c | 2 --
1
From: Wei Yongjun
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Wei Yongjun
---
drivers/mtd/spi-nor/atmel-quadspi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/spi-nor/atmel
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Add the missing clk_disable_unprepare() before return in the
error handling case.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 ++
1 file changed, 2 insertions(+)
From: Wei Yongjun
Add the missing clk_disable_unprepare() before return in the
error handling case.
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
b/drivers
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/gpu/drm/rockchip/analogix_d
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Fix the reset_control_deassert() fail and clk_prepare_enable() fail
error handling of ade_power_up().
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 10 --
1
From: Wei Yongjun
Remove .owner field if calls are used which set it automatically.
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu
From: Wei Yongjun
Fix the reset_control_deassert() fail and clk_prepare_enable() fail
error handling of ade_power_up().
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 10 --
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Remove duplicated include.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
drivers/hwtracing/coresight/coresight-etm4x.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
drivers/hwtracing/coresight/coresight-etm4x.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hwtracing/coresight/coresight-etm4x.c
b/drivers/hwtracing/coresight/coresight-etm4x.c
index 0d8ebfa..6e639b9
From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
Remove duplicated include.
Signed-off-by: Wei Yongjun <yongjun_...@trendmicro.com.cn>
---
arch/arm/mach-ux500/cpu-db8500.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/arm/mach-ux500/cpu-db8500.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-ux500/cpu-db8500.c b/arch/arm/mach-ux500/cpu-db8500.c
index 46b1da1..c0c36b97 100644
--- a/arch/arm/mach-ux500/cpu
Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a
Gitweb: http://git.kernel.org/tip/885885f6b88d22f81e67ee6a61561e480b27d27a
Author: Wei Yongjun <yongjun_...@trendmicro.com.cn>
AuthorDate: Fri, 17 Jun 2016 17:19:40 +
Committer: Ingo Molnar <mi...@kernel.org>
CommitDate
Commit-ID: 885885f6b88d22f81e67ee6a61561e480b27d27a
Gitweb: http://git.kernel.org/tip/885885f6b88d22f81e67ee6a61561e480b27d27a
Author: Wei Yongjun
AuthorDate: Fri, 17 Jun 2016 17:19:40 +
Committer: Ingo Molnar
CommitDate: Thu, 7 Jul 2016 09:06:46 +0200
locking/static_keys: Fix non
Hi,
On 07/06/2016 08:18 PM, Alexandre Belloni wrote:
> Hi,
>
> On 06/07/2016 at 12:08:05 +, weiyj...@163.com wrote :
>> From: Wei Yongjun <yongjun_...@trendmicro.com.cn>
>>
>> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.
>>
> I'm guessi
Hi,
On 07/06/2016 08:18 PM, Alexandre Belloni wrote:
> Hi,
>
> On 06/07/2016 at 12:08:05 +, weiyj...@163.com wrote :
>> From: Wei Yongjun
>>
>> Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR.
>>
> I'm guessing you found that using coccinnelle
From: Wei Yongjun
In case of error, function of_clk_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun
---
drivers/clocksource/timer-keystone.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, function of_clk_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value
check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/clocksource/timer
Commit-ID: 19259943f0954dcd1817f94776376bf51c6a46d5
Gitweb: http://git.kernel.org/tip/19259943f0954dcd1817f94776376bf51c6a46d5
Author: Wei Yongjun
AuthorDate: Sat, 7 Dec 2013 21:02:36 +0800
Committer: H. Peter Anvin
CommitDate: Tue, 14 Jan 2014 10:45:56 -0800
x86, kaslr: Remove unused
Commit-ID: 19259943f0954dcd1817f94776376bf51c6a46d5
Gitweb: http://git.kernel.org/tip/19259943f0954dcd1817f94776376bf51c6a46d5
Author: Wei Yongjun yongjun_...@trendmicro.com.cn
AuthorDate: Sat, 7 Dec 2013 21:02:36 +0800
Committer: H. Peter Anvin h...@linux.intel.com
CommitDate: Tue, 14
From: Wei Yongjun
Fixes the following sparse warnings:
drivers/staging/android/ion/ion_dummy_driver.c:26:19: warning:
symbol 'idev' was not declared. Should it be static?
drivers/staging/android/ion/ion_dummy_driver.c:27:17: warning:
symbol 'heaps' was not declared. Should it be static
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warnings:
drivers/staging/android/ion/ion_dummy_driver.c:26:19: warning:
symbol 'idev' was not declared. Should it be static?
drivers/staging/android/ion/ion_dummy_driver.c:27:17: warning:
symbol 'heaps
From: Wei Yongjun
Fixes the following sparse warning:
sound/soc/codecs/wm_adsp.c:1500:6: warning:
symbol 'wm_adsp2_boot_work' was not declared. Should it be static?
Signed-off-by: Wei Yongjun
---
sound/soc/codecs/wm_adsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warning:
sound/soc/codecs/wm_adsp.c:1500:6: warning:
symbol 'wm_adsp2_boot_work' was not declared. Should it be static?
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
sound/soc/codecs/wm_adsp.c | 2 +-
1
From: Wei Yongjun
Fixes the following sparse warning:
sound/soc/ux500/ux500_msp_i2s.c:649:5: warning:
symbol 'ux500_msp_i2s_of_init_msp' was not declared. Should it be static?
Signed-off-by: Wei Yongjun
---
sound/soc/ux500/ux500_msp_i2s.c | 6 +++---
1 file changed, 3 insertions(+), 3
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warning:
sound/soc/ux500/ux500_msp_i2s.c:649:5: warning:
symbol 'ux500_msp_i2s_of_init_msp' was not declared. Should it be static?
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
sound/soc/ux500
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
drivers/rtc/rtc-isl12057.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c
index 7854a65..7e5ead9 100644
--- a/drivers/rtc/rtc-isl12057.c
+++ b/drivers/rtc
From: Wei Yongjun
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().
Signed-off-by: Wei Yongjun
---
drivers/mtd/nand/nuc900_nand.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/mtd/nand
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/x86/xen/enlighten.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index a4e2f30..b6d61c3 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen
From: Wei Yongjun
Fix to return -ENOMEM from the error handling case instead of
0 (overwrited to 0 by the HYPERVISOR_event_channel_op call),
otherwise the error condition cann't be reflected from the
return value.
Signed-off-by: Wei Yongjun
---
drivers/xen/events/events_fifo.c | 6 --
1
From: Wei Yongjun
Neither devm_usb_get_phy_by_phandle() nor devm_usb_get_phy() can
return a NULL result, so remove the useless !isp->phy check.
Signed-off-by: Wei Yongjun
---
drivers/power/isp1704_charger.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/power/isp1704_charger.
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, otherwise the error condition cann't be
reflected from the return value.
Signed-off-by: Wei Yongjun
---
drivers/xen/platform-pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff
From: Wei Yongjun
In case of error, the function device_create_with_groups()
returns ERR_PTR() and never returns NULL. The NULL test in
the return value check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun
---
drivers/misc/genwqe/card_dev.c | 4 ++--
1 file changed, 2 insertions
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function device_create_with_groups()
returns ERR_PTR() and never returns NULL. The NULL test in
the return value check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, otherwise the error condition cann't be
reflected from the return value.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/xen/platform-pci.c | 3
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Neither devm_usb_get_phy_by_phandle() nor devm_usb_get_phy() can
return a NULL result, so remove the useless !isp-phy check.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/power/isp1704_charger.c | 2 --
1 file changed, 2
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM from the error handling case instead of
0 (overwrited to 0 by the HYPERVISOR_event_channel_op call),
otherwise the error condition cann't be reflected from the
return value.
Signed-off-by: Wei Yongjun yongjun_
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove duplicated include.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
arch/x86/xen/enlighten.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index a4e2f30..b6d61c3 100644
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mtd/nand/nuc900_nand.c | 3 ---
1 file
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove duplicated include.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/rtc/rtc-isl12057.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c
index 7854a65..7e5ead9
From: Wei Yongjun
Fixes the following sparse warnings:
drivers/staging/silicom/bypasslib/bypass.c:528:12: warning:
symbol 'init_lib_module' was not declared. Should it be static?
drivers/staging/silicom/bypasslib/bypass.c:534:13: warning:
symbol 'cleanup_lib_module' was not declared. Should
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warnings:
drivers/staging/silicom/bypasslib/bypass.c:528:12: warning:
symbol 'init_lib_module' was not declared. Should it be static?
drivers/staging/silicom/bypasslib/bypass.c:534:13: warning:
symbol
From: Wei Yongjun
Remove including that don't need it.
Signed-off-by: Wei Yongjun
---
drivers/misc/genwqe/card_sysfs.c | 1 -
drivers/misc/genwqe/card_base.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers/misc/genwqe/card_sysfs.c b/drivers/misc/genwqe/card_sysfs.c
index
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove including linux/version.h that don't need it.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/misc/genwqe/card_sysfs.c | 1 -
drivers/misc/genwqe/card_base.h | 1 -
2 files changed, 2 deletions(-)
diff --git a/drivers
From: Wei Yongjun
Fixes the following sparse warning:
drivers/mfd/twl6040.c:89:20: warning:
symbol 'twl6040_patch' was not declared. Should it be static?
Signed-off-by: Wei Yongjun
---
drivers/mfd/twl6040.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warning:
drivers/mfd/twl6040.c:89:20: warning:
symbol 'twl6040_patch' was not declared. Should it be static?
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mfd/twl6040.c | 2 +-
1 file changed, 1
From: Wei Yongjun
In case of error, the function crypto_alloc_hash() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun
---
drivers/staging/lustre/lustre/obdclass/capa.c | 4 ++--
1 file changed, 2
From: Wei Yongjun
Add the missing destroy_workqueue() before return from
sep_crypto_setup() and sep_crypto_takedown().
Signed-off-by: Wei Yongjun
---
drivers/staging/sep/sep_crypto.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/sep/sep_crypto.c b/drivers/staging/sep
From: Wei Yongjun
Fixes the following sparse warning:
drivers/mfd/rtl8411.c:473:6: warning:
symbol 'rtl8411_init_common_params' was not declared. Should it be static?
Signed-off-by: Wei Yongjun
---
drivers/mfd/rtl8411.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warning:
drivers/mfd/rtl8411.c:473:6: warning:
symbol 'rtl8411_init_common_params' was not declared. Should it be static?
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mfd/rtl8411.c | 2 +-
1
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing destroy_workqueue() before return from
sep_crypto_setup() and sep_crypto_takedown().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/staging/sep/sep_crypto.c | 2 ++
1 file changed, 2 insertions(+)
diff --git
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function crypto_alloc_hash() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/staging
From: Wei Yongjun
In case of error, the function debugfs_create_file() returns NULL
pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test in
the return value check should be replaced with NULL test.
Signed-off-by: Wei Yongjun
---
drivers/gpu/drm/i915/i915_debugfs.c | 12
From: Wei Yongjun
Fix to return negative error code -EIO from the error handling
case instead of 0.
Signed-off-by: Wei Yongjun
---
drivers/staging/xillybus/xillybus_pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/xillybus/xillybus_pcie.c
b/drivers
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return negative error code -EIO from the error handling
case instead of 0.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/staging/xillybus/xillybus_pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function debugfs_create_file() returns NULL
pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test in
the return value check should be replaced with NULL test.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
From: Wei Yongjun
In case of error, the function regulator_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun
---
arch/arm/mach-pxa/em-x270.c | 4 ++--
1 file changed, 2 insertions(+), 2
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function regulator_get() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
arch/arm/mach-pxa/em
From: Wei Yongjun
Remove including that don't need it.
Signed-off-by: Wei Yongjun
---
arch/x86/boot/compressed/aslr.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot/compressed/aslr.c
index 84be175..90a21f4 100644
--- a/arch/x86/boot
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove including linux/version.h that don't need it.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
arch/x86/boot/compressed/aslr.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/boot/compressed/aslr.c b/arch/x86/boot
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
fs/kernfs/file.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c
index 990c97f..4a5863b 100644
--- a/fs/kernfs/file.c
+++ b/fs/kernfs/file.c
@@ -13,7 +13,6 @@
#include
From: Wei Yongjun
In case of error, the function devm_regmap_init_mmio() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun
---
drivers/mfd/sta2x11-mfd.c | 2 +-
1 file changed, 1 insertion(+), 1
From: Wei Yongjun
Fixes the following sparse warning:
drivers/mfd/sec-core.c:202:16: warning: Using plain integer as NULL pointer
Signed-off-by: Wei Yongjun
---
drivers/mfd/sec-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fixes the following sparse warning:
drivers/mfd/sec-core.c:202:16: warning: Using plain integer as NULL pointer
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mfd/sec-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function devm_regmap_init_mmio() returns
ERR_PTR() and never returns NULL. The NULL test in the return
value check should be replaced with IS_ERR().
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mfd
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Remove duplicated include.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
fs/kernfs/file.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c
index 990c97f..4a5863b 100644
--- a/fs/kernfs/file.c
From: Wei Yongjun
We have registered platform driver and device when module
init, and need unregister them when module exit.
Signed-off-by: Wei Yongjun
---
drivers/platform/chrome/chromeos_laptop.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/platform/chrome
From: Wei Yongjun
Fix to return -ENOMEM instead of 0 when the memory alloc fail
in probe error handling path.
Signed-off-by: Wei Yongjun
---
drivers/staging/rts5208/rtsx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return -ENOMEM instead of 0 when the memory alloc fail
in probe error handling path.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/staging/rts5208/rtsx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff
From: Wei Yongjun yongjun_...@trendmicro.com.cn
We have registered platform driver and device when module
init, and need unregister them when module exit.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/platform/chrome/chromeos_laptop.c | 3 +++
1 file changed, 3 insertions
From: Wei Yongjun
Add the missing clk_disable_unprepare() before return
from k3_dma_probe() in the error handling case.
Signed-off-by: Wei Yongjun
---
drivers/dma/k3dma.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add the missing clk_disable_unprepare() before return
from k3_dma_probe() in the error handling case.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/dma/k3dma.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff
On 11/11/2013 04:38 PM, Duan Jiong wrote:
> 于 2013å¹´11月11æ—¥ 15:43, Wei Yongjun 写é“:
>> On 11/01/2013 06:09 PM, Duan Jiong wrote:
>>> This patch fixes coccinelle error regarding usage of IS_ERR and
>>> PTR_ERR instead of PTR_ERR_OR_ZERO.
>&g
On 11/11/2013 04:38 PM, Duan Jiong wrote:
于 2013å¹´11月11æ—¥ 15:43, Wei Yongjun 写é“:
On 11/01/2013 06:09 PM, Duan Jiong wrote:
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong duanj.f...@cn.fujitsu.com
On 11/01/2013 06:09 PM, Duan Jiong wrote:
> This patch fixes coccinelle error regarding usage of IS_ERR and
> PTR_ERR instead of PTR_ERR_OR_ZERO.
>
> Signed-off-by: Duan Jiong
> ---
> drivers/misc/carma/carma-fpga.c | 5 +
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git
From: Wei Yongjun
Add missing platform_set_drvdata() in au1550nd_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.
Signed-off-by: Wei Yongjun
---
drivers/mtd/nand/au1550nd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mtd/nand/au1550nd.c b/drivers/mtd
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Add missing platform_set_drvdata() in au1550nd_probe(), otherwise
calling platform_get_drvdata() in remove returns NULL.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mtd/nand/au1550nd.c | 2 ++
1 file changed, 2 insertions
On 11/01/2013 06:09 PM, Duan Jiong wrote:
This patch fixes coccinelle error regarding usage of IS_ERR and
PTR_ERR instead of PTR_ERR_OR_ZERO.
Signed-off-by: Duan Jiong duanj.f...@cn.fujitsu.com
---
drivers/misc/carma/carma-fpga.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
From: Wei Yongjun
platform_set_drvdata(op, pdata) in pcm030_fabric_probe()
will be overwrited when calling snd_soc_register_card(card),
but cm030_fabric_remove() use drvdata as a type of struct
pcm030_audio_data, so we should move platform_set_drvdata()
below snd_soc_register_card() call
From: Wei Yongjun yongjun_...@trendmicro.com.cn
platform_set_drvdata(op, pdata) in pcm030_fabric_probe()
will be overwrited when calling snd_soc_register_card(card),
but cm030_fabric_remove() use drvdata as a type of struct
pcm030_audio_data, so we should move platform_set_drvdata()
below
From: Wei Yongjun
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/mtd/nand/omap2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers
From: Wei Yongjun
clk_register_pll() returns ERR_PTR() when memory alloc fail and NULL
in the other case, the user of this function should used IS_ERR_OR_NULL()
to check the return value. this patch change clk_register_pll() to return
only ERR_PTR(), and also fixed the user.
Signed-off-by: Wei
From: Wei Yongjun
In case of error, the function devm_ioremap_nocache() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
Signed-off-by: Wei Yongjun
---
drivers/pinctrl/pinctrl-imx1-core.c | 4 ++--
1 file changed, 2 insertions
From: Wei Yongjun yongjun_...@trendmicro.com.cn
In case of error, the function devm_ioremap_nocache() returns NULL
pointer not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/pinctrl
From: Wei Yongjun yongjun_...@trendmicro.com.cn
clk_register_pll() returns ERR_PTR() when memory alloc fail and NULL
in the other case, the user of this function should used IS_ERR_OR_NULL()
to check the return value. this patch change clk_register_pll() to return
only ERR_PTR(), and also fixed
From: Wei Yongjun yongjun_...@trendmicro.com.cn
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn
---
drivers/mtd/nand/omap2.c | 3 ++-
1 file changed, 2 insertions(+), 1
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/arm/mach-imx/clk-imx51-imx53.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-imx/clk-imx51-imx53.c
b/arch/arm/mach-imx/clk-imx51-imx53.c
index ce37af2..2828ea65 100644
--- a/arch/arm/mach-imx
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
arch/arm/mach-ixp4xx/dsmg600-setup.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c
b/arch/arm/mach-ixp4xx/dsmg600-setup.c
index 736dc69..7740e13 100644
--- a/arch/arm/mach
From: Wei Yongjun
Remove duplicated include.
Signed-off-by: Wei Yongjun
---
drivers/mtd/mtdcore.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 7189089..92311a5 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -37,7
From: Wei Yongjun
Fix to return ENODEV in the pci ioremap error handling case
instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/misc/tifm_7xx1.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/misc/tifm_7xx1.c b/drivers
From: Wei Yongjun
Fix to return -ENOMEM in the skd construct error handling
case instead of 0, as done elsewhere in this function.
Signed-off-by: Wei Yongjun
---
drivers/block/skd_main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/block/skd_main.c b/drivers
601 - 700 of 1371 matches
Mail list logo