[PATCH] soc: ti: knav_qmss: Put refcount for dev node in failure case

2020-12-16 Thread Vasyl Gomonovych
/for_each_child.cocci Signed-off-by: Vasyl Gomonovych --- drivers/soc/ti/knav_dma.c| 1 + drivers/soc/ti/knav_qmss_queue.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/drivers/soc/ti/knav_dma.c b/drivers/soc/ti/knav_dma.c index 8c863ecb1c60..9d25546e4d96 100644 --- a/drivers/soc/ti

[PATCH v2] net/mlx4: Use true,false for bool variable

2020-12-14 Thread Vasyl Gomonovych
It is fix for semantic patch warning available in scripts/coccinelle/misc/boolinit.cocci Fix en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable Fix main.c:4465:5-13: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Vasyl Gomonovych --- - Add coccicheck script name

[PATCH] net/mlx4: Use true,false for bool variable

2020-12-11 Thread Vasyl Gomonovych
Fix en_rx.c:687:1-17: WARNING: Assignment of 0/1 to bool variable Fix main.c:4465:5-13: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Vasyl Gomonovych --- drivers/net/ethernet/mellanox/mlx4/en_rx.c | 2 +- drivers/net/ethernet/mellanox/mlx4/main.c | 2 +- 2 files changed, 2

[PATCH] AppArmor: Remove semicolon

2019-07-26 Thread Vasyl Gomonovych
Remove unneeded semicolon Signed-off-by: Vasyl Gomonovych --- security/apparmor/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/apparmor/path.c b/security/apparmor/path.c index c6da542de27b..b02dfdbff7cd 100644 --- a/security/apparmor/path.c +++ b/security

[PATCH] extcon: max77843: Add IRQ_ONESHOT mask

2019-07-25 Thread Vasyl Gomonovych
Do not fire irq again until thread done This issue was found by code inspection Coccicheck irqf_oneshot.cocci Signed-off-by: Vasyl Gomonovych --- drivers/extcon/extcon-max77843.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-max77843.c b/drivers

[PATCH] extcon: max8997: Use irq mask IRQF_ONESHOT

2019-07-25 Thread Vasyl Gomonovych
Do not fire irq again until thread done This issue was found by code inspection Coccicheck irqf_oneshot.cocci Signed-off-by: Vasyl Gomonovych --- drivers/extcon/extcon-max8997.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-max8997.c b/drivers/extcon

[PATCH] extcon: max14577: Add irq mask IRQ_ONESHOT

2019-07-25 Thread Vasyl Gomonovych
Do not fire irq again until thread done This issue was found by code inspection Coccicheck irqf_oneshot.cocci Signed-off-by: Vasyl Gomonovych --- drivers/extcon/extcon-max14577.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-max14577.c b/drivers

[PATCH] extcon: max77693: Add extra IRQF_ONESHOT

2019-07-25 Thread Vasyl Gomonovych
Do not fire irq again until thread done This issue was found by code inspection Coccicheck irqf_oneshot.cocci Signed-off-by: Vasyl Gomonovych --- drivers/extcon/extcon-max77693.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-max77693.c b/drivers

[PATCH] extcon: sm5502: Add IRQ_ONESHOT

2019-07-19 Thread Vasyl Gomonovych
Do not fire irq again until thread done Signed-off-by: Vasyl Gomonovych --- Can you please look on this from false positives point of view --- drivers/extcon/extcon-sm5502.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/extcon/extcon-sm5502.c b/drivers/extcon

[PATCH] scsi: ibmvscsi: remove casting dma_alloc_coherent

2019-07-18 Thread Vasyl Gomonovych
Fix allocation style Generated by: alloc_cast.cocci Signed-off-by: Vasyl Gomonovych --- drivers/scsi/ibmvscsi/ibmvscsi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c index 7f66a7783209..7e9b3e409851

[PATCH] [SCSI] esas2r: remove casting dma_alloc_coherent

2019-07-18 Thread Vasyl Gomonovych
Fix allocation style Generated by: alloc_cast.cocci Signed-off-by: Vasyl Gomonovych --- drivers/scsi/esas2r/esas2r_ioctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/esas2r/esas2r_ioctl.c b/drivers/scsi/esas2r/esas2r_ioctl.c index 3d130523c288

[PATCH] fnic: remove casting vmalloc

2019-07-18 Thread Vasyl Gomonovych
Generated by: alloc_cast.cocci Signed-off-by: Vasyl Gomonovych --- drivers/scsi/fnic/fnic_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/fnic/fnic_debugfs.c b/drivers/scsi/fnic/fnic_debugfs.c index 21991c99db7c..8c5bae6165d6 100644 --- a/drivers

[PATCH] scsi: pmcraid: Use dma_pool_zalloc rather than dma_pool_alloc

2019-07-18 Thread Vasyl Gomonovych
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0 The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci. Signed-off-by: Vasyl Gomonovych --- drivers/scsi/pmcraid.c | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH] scsi: pmcraid: Use dma_pool_zalloc rather than dma_pool_alloc

2019-07-18 Thread Vasyl Gomonovych
Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0 The semantic patch that makes this change is available in scripts/coccinelle/api/alloc/pool_zalloc-simple.cocci. Signed-off-by: Vasyl Gomonovych --- drivers/scsi/pmcraid.c | 6 +- 1 file changed, 1 insertion(+), 5

[PATCH] i2c: remove casting dma_alloc

2019-06-23 Thread Vasyl Gomonovych
From: Vasyl Generated by: alloc_cast.cocci Signed-off-by: Vasyl --- drivers/i2c/busses/i2c-cpm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-cpm.c b/drivers/i2c/busses/i2c-cpm.c index 187900594e3d..1213e1932ccb 100644 ---

[PATCH] ring-buffer: Fix typo in comment

2018-05-18 Thread Vasyl Gomonovych
Fix typo in the words 'reserved', 'been' Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- include/linux/ring_buffer.h | 2 +- kernel/trace/ring_buffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ring_buffer.h b/include/linux/ring_bu

[PATCH] ring-buffer: Fix typo in comment

2018-05-18 Thread Vasyl Gomonovych
Fix typo in the words 'reserved', 'been' Signed-off-by: Vasyl Gomonovych --- include/linux/ring_buffer.h | 2 +- kernel/trace/ring_buffer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/ring_buffer.h b/include/linux/ring_buffer.h index 7d9eb39fa76a

[PATCH] soc: ti: knav_qmss: Use percpu instead atomic for stats counter

2018-04-11 Thread Vasyl Gomonovych
coming into driver from hardware after pop and return back by push to reduce descriptor lifetime in driver collect statistics on percpu. Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/soc/ti/knav_qmss.h | 14 ++ drivers/soc/ti/knav_qmss_queue.

[PATCH] soc: ti: knav_qmss: Use percpu instead atomic for stats counter

2018-04-11 Thread Vasyl Gomonovych
coming into driver from hardware after pop and return back by push to reduce descriptor lifetime in driver collect statistics on percpu. Signed-off-by: Vasyl Gomonovych --- drivers/soc/ti/knav_qmss.h | 14 ++ drivers/soc/ti/knav_qmss_queue.c | 60

[PATCH] rapidio: fix typo in comment

2018-03-21 Thread Vasyl Gomonovych
Fix typo in the words 'receiver', 'specified', 'during' Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/rapidio/rio-scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 23429b

[PATCH] rapidio: fix typo in comment

2018-03-21 Thread Vasyl Gomonovych
Fix typo in the words 'receiver', 'specified', 'during' Signed-off-by: Vasyl Gomonovych --- drivers/rapidio/rio-scan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rapidio/rio-scan.c b/drivers/rapidio/rio-scan.c index 23429bdaca84..161b927d9de1 100644

[tip:efi/core] efi: Use PTR_ERR_OR_ZERO()

2018-01-03 Thread tip-bot for Vasyl Gomonovych
Commit-ID: 50342b2e498777df237a40a23eebc02f0935e636 Gitweb: https://git.kernel.org/tip/50342b2e498777df237a40a23eebc02f0935e636 Author: Vasyl Gomonovych <gomonov...@gmail.com> AuthorDate: Tue, 2 Jan 2018 18:10:40 + Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Wed

[tip:efi/core] efi: Use PTR_ERR_OR_ZERO()

2018-01-03 Thread tip-bot for Vasyl Gomonovych
Commit-ID: 50342b2e498777df237a40a23eebc02f0935e636 Gitweb: https://git.kernel.org/tip/50342b2e498777df237a40a23eebc02f0935e636 Author: Vasyl Gomonovych AuthorDate: Tue, 2 Jan 2018 18:10:40 + Committer: Ingo Molnar CommitDate: Wed, 3 Jan 2018 14:03:48 +0100 efi: Use

[PATCH v2] ima: Fix warn potential negative subtraction from max

2017-12-21 Thread Vasyl Gomonovych
Found by smatch: security/integrity/ima/ima_queue.c:122 ima_add_digest_entry() warn: potential negative subtraction from max '(~0)- size' Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- This minor change remove smatch warning but I don't think that before change it was vuln

[PATCH v2] ima: Fix warn potential negative subtraction from max

2017-12-21 Thread Vasyl Gomonovych
Found by smatch: security/integrity/ima/ima_queue.c:122 ima_add_digest_entry() warn: potential negative subtraction from max '(~0)- size' Signed-off-by: Vasyl Gomonovych --- This minor change remove smatch warning but I don't think that before change it was vulnerable, motivation

[PATCH] Smack: fix dereferenced before check

2017-12-21 Thread Vasyl Gomonovych
This patch fixes the warning reported by smatch: security/smack/smack_lsm.c:2872 smack_socket_connect() warn: variable dereferenced before check 'sock->sk' (see line 2869) Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- security/smack/smack_lsm.c | 6 +- 1 file c

[PATCH] Smack: fix dereferenced before check

2017-12-21 Thread Vasyl Gomonovych
This patch fixes the warning reported by smatch: security/smack/smack_lsm.c:2872 smack_socket_connect() warn: variable dereferenced before check 'sock->sk' (see line 2869) Signed-off-by: Vasyl Gomonovych --- security/smack/smack_lsm.c | 6 +- 1 file changed, 5 insertions(+), 1 delet

[PATCH] ima: Fix warn potential negative subtraction from max

2017-12-21 Thread Vasyl Gomonovych
Found by smatch: security/integrity/ima/ima_queue.c:122 ima_add_digest_entry() warn: potential negative subtraction from max '(~0)- size' Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- security/integrity/ima/ima_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH] ima: Fix warn potential negative subtraction from max

2017-12-21 Thread Vasyl Gomonovych
Found by smatch: security/integrity/ima/ima_queue.c:122 ima_add_digest_entry() warn: potential negative subtraction from max '(~0)- size' Signed-off-by: Vasyl Gomonovych --- security/integrity/ima/ima_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/integrity

[PATCH] gpio: fix aspeed_gpio_banks array size check

2017-12-21 Thread Vasyl Gomonovych
The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE(). Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/gpio/gpio-aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index

[PATCH] gpio: fix aspeed_gpio_banks array size check

2017-12-21 Thread Vasyl Gomonovych
The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE(). Signed-off-by: Vasyl Gomonovych --- drivers/gpio/gpio-aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index 6b3ca6601af2..aac532837b81

[PATCH] epoll: fix dereferenced before check pt

2017-12-21 Thread Vasyl Gomonovych
This patch fixes the warning reported by smatch: fs/eventpoll.c:889 ep_item_poll() warn: variable dereferenced before check 'pt' Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- fs/eventpoll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/eventpoll.

[PATCH] epoll: fix dereferenced before check pt

2017-12-21 Thread Vasyl Gomonovych
This patch fixes the warning reported by smatch: fs/eventpoll.c:889 ep_item_poll() warn: variable dereferenced before check 'pt' Signed-off-by: Vasyl Gomonovych --- fs/eventpoll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/eventpoll.c b/fs/eventpoll.c index

[PATCH] dmaengine: cppi41: Fix channel queues array size check

2017-12-21 Thread Vasyl Gomonovych
The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE(). Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index f7e965f63274..d9bee65

[PATCH] dmaengine: cppi41: Fix channel queues array size check

2017-12-21 Thread Vasyl Gomonovych
The test should be >= ARRAY_SIZE() instead of > ARRAY_SIZE(). Signed-off-by: Vasyl Gomonovych --- drivers/dma/cppi41.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index f7e965f63274..d9bee65a18a4 100644 --- a/drivers/dma/

[PATCH v3] misc: mic: Use memdup_user() as a cleanup

2017-12-13 Thread Vasyl Gomonovych
-by: Vasyl Gomonovych <gomonov...@gmail.com> --- I'm not sure if this still valid, maybe warning was fixed already. In that case sorry for this disturbing noise. Changelog: - v1: - Replace kzalloc + copy_from_user by memdup_user - v2: - Sorry for this disturb - Fix warning: labe

[PATCH v3] misc: mic: Use memdup_user() as a cleanup

2017-12-13 Thread Vasyl Gomonovych
-by: Vasyl Gomonovych --- I'm not sure if this still valid, maybe warning was fixed already. In that case sorry for this disturbing noise. Changelog: - v1: - Replace kzalloc + copy_from_user by memdup_user - v2: - Sorry for this disturb - Fix warning: label done defined but not used

[PATCH v2] misc: mic: Use memdup_user() as a cleanup

2017-12-12 Thread Vasyl Gomonovych
/mic/vop/vop_vringh.c:1001:1: warning: label 'done' defined but not used [-Wunused-label] Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/misc/mic/vop/vop_vringh.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/misc/m

[PATCH v2] misc: mic: Use memdup_user() as a cleanup

2017-12-12 Thread Vasyl Gomonovych
/mic/vop/vop_vringh.c:1001:1: warning: label 'done' defined but not used [-Wunused-label] Signed-off-by: Vasyl Gomonovych --- drivers/misc/mic/vop/vop_vringh.c | 22 +++--- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/drivers/misc/mic/vop/vop_vringh.c b/drivers

[PATCH] block/sed-opal: Fix warnings never less than zero

2017-12-11 Thread Vasyl Gomonovych
Fixed following smatch warnings in sed-opal.c block/sed-opal.c:2311 opal_set_new_pw() warn: unsigned 'opal_pw->session.who' is never less than zero. Unless enum opal_user interface will remain stable warning could be fixed in mentioned way by removing unnecessary check Signed-off-by: Va

[PATCH] block/sed-opal: Fix warnings never less than zero

2017-12-11 Thread Vasyl Gomonovych
Fixed following smatch warnings in sed-opal.c block/sed-opal.c:2311 opal_set_new_pw() warn: unsigned 'opal_pw->session.who' is never less than zero. Unless enum opal_user interface will remain stable warning could be fixed in mentioned way by removing unnecessary check Signed-off-by: Va

[PATCH] ACPI, APEI, Fix use resource_size

2017-12-11 Thread Vasyl Gomonovych
Use resource_size function on resource object Underneath __request_region set res->end to start + n - 1 Lets use resourse_size to set value properly. Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/acpi/apei/apei-base.c | 13 ++--- 1 file changed, 6 inserti

[PATCH] ACPI, APEI, Fix use resource_size

2017-12-11 Thread Vasyl Gomonovych
Use resource_size function on resource object Underneath __request_region set res->end to start + n - 1 Lets use resourse_size to set value properly. Signed-off-by: Vasyl Gomonovych --- drivers/acpi/apei/apei-base.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --

[PATCH] x86/mm/kmmio: Fix returned errno code

2017-12-08 Thread Vasyl Gomonovych
add_kmmio_fault_page using -1 instead of the -ENOMEM defined macro to specify kmmio_fault_page allocation failed. Smatch tool warning: arch/x86/mm/kmmio.c:389 add_kmmio_fault_page() warn: returning -1 instead of -ENOMEM is sloppy Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> ---

[PATCH] x86/mm/kmmio: Fix returned errno code

2017-12-08 Thread Vasyl Gomonovych
add_kmmio_fault_page using -1 instead of the -ENOMEM defined macro to specify kmmio_fault_page allocation failed. Smatch tool warning: arch/x86/mm/kmmio.c:389 add_kmmio_fault_page() warn: returning -1 instead of -ENOMEM is sloppy Signed-off-by: Vasyl Gomonovych --- arch/x86/mm/kmmio.c | 2

[PATCH] ACPICA: Fix indentation

2017-12-08 Thread Vasyl Gomonovych
This patch avoids that smatch reports the following: drivers/acpi/acpica/exdump.c:623 acpi_ex_dump_operand() warn: inconsistent indenting Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] ACPICA: Fix indentation

2017-12-08 Thread Vasyl Gomonovych
This patch avoids that smatch reports the following: drivers/acpi/acpica/exdump.c:623 acpi_ex_dump_operand() warn: inconsistent indenting Signed-off-by: Vasyl Gomonovych --- drivers/acpi/acpica/exdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/acpica

[PATCH] fs/seq_file: Fix warning of passing zero to 'PTR_ERR'

2017-12-07 Thread Vasyl Gomonovych
p could be NULL and passing into PTR_ERR Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- fs/seq_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/seq_file.c b/fs/seq_file.c index 4be761c..8b700b9 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@

[PATCH] fs/seq_file: Fix warning of passing zero to 'PTR_ERR'

2017-12-07 Thread Vasyl Gomonovych
p could be NULL and passing into PTR_ERR Signed-off-by: Vasyl Gomonovych --- fs/seq_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/seq_file.c b/fs/seq_file.c index 4be761c..8b700b9 100644 --- a/fs/seq_file.c +++ b/fs/seq_file.c @@ -262,8 +262,8 @@ ssize_t

[PATCH] net: intel: e100: Fix warning of passing zero to 'PTR_ERR'

2017-12-07 Thread Vasyl Gomonovych
fw could be NULL and put into PTR_ERR also zero in PTR_ERR will be translated into success return statement Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/net/ethernet/intel/e100.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/et

[PATCH] net: intel: e100: Fix warning of passing zero to 'PTR_ERR'

2017-12-07 Thread Vasyl Gomonovych
fw could be NULL and put into PTR_ERR also zero in PTR_ERR will be translated into success return statement Signed-off-by: Vasyl Gomonovych --- drivers/net/ethernet/intel/e100.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/e100.c b/drivers

[PATCH] of: irq: Fix function description comment

2017-12-06 Thread Vasyl Gomonovych
Make small cleanup in function description for of_irq_parse_raw Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/of/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index ec00ae7..7dcea86 100644 --- a/d

[PATCH] of: irq: Fix function description comment

2017-12-06 Thread Vasyl Gomonovych
Make small cleanup in function description for of_irq_parse_raw Signed-off-by: Vasyl Gomonovych --- drivers/of/irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index ec00ae7..7dcea86 100644 --- a/drivers/of/irq.c +++ b/drivers

[PATCH] usb: host: fotg210: Use dma_pool_zalloc

2017-11-30 Thread Vasyl Gomonovych
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/usb/host/fotg210-hcd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/f

[PATCH] usb: host: fotg210: Use dma_pool_zalloc

2017-11-30 Thread Vasyl Gomonovych
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc Signed-off-by: Vasyl Gomonovych --- drivers/usb/host/fotg210-hcd.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/usb/host/fotg210-hcd.c b/drivers/usb/host/fotg210-hcd.c index

[PATCH] net: ethernet: ixp4xx_eth: Use dma_pool_zalloc

2017-11-30 Thread Vasyl Gomonovych
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xscale/ixp4xx_et

[PATCH] net: ethernet: ixp4xx_eth: Use dma_pool_zalloc

2017-11-30 Thread Vasyl Gomonovych
Replacing dma_pool_alloc and memset with a single call to dma_pool_zalloc Signed-off-by: Vasyl Gomonovych --- drivers/net/ethernet/xscale/ixp4xx_eth.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xscale/ixp4xx_eth.c b/drivers/net/ethernet

[PATCH] video: fbdev: omap2: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c:676:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.

[PATCH] video: fbdev: omap2: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c:676:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/video/fbdev/omap2

[PATCH] PNP: pnpbios: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/pnp/pnpbios/core.c:584:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/pnp/p

[PATCH] PNP: pnpbios: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/pnp/pnpbios/core.c:584:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/pnp/pnpbios/core.c | 5 + 1 file

[PATCH] media: exynos4-is: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/media/platform/exynos4-is/fimc-lite.c:1465:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.

[PATCH] media: exynos4-is: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/media/platform/exynos4-is/fimc-lite.c:1465:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/media/platform

[PATCH] clk: sunxi: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/clk/sunxi/clk-sun8i-apb0.c:101:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/clk

[PATCH] clk: sunxi: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/clk/sunxi/clk-sun8i-apb0.c:101:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/clk/sunxi/clk-sun8i-apb0.c | 5

[PATCH] clk: mvebu: armada-37xx-periph: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/clk/mvebu/armada-37xx-periph.c:362:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drive

[PATCH] clk: mvebu: armada-37xx-periph: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/clk/mvebu/armada-37xx-periph.c:362:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/clk/mvebu/armada-37xx

[PATCH] KVM: arm: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: virt/kvm/arm/vgic/vgic-its.c:971:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- virt/kvm/arm/vgi

[PATCH] KVM: arm: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: virt/kvm/arm/vgic/vgic-its.c:971:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- virt/kvm/arm/vgic/vgic-its.c | 4 +--- 1 file

[PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO() in glink prob

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/remoteproc/qcom_common.c:60:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/remo

[PATCH] remoteproc: qcom: Use PTR_ERR_OR_ZERO() in glink prob

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/remoteproc/qcom_common.c:60:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/remoteproc/qcom_common.c | 2

[PATCH] drm/tegra: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/gpu/drm/tegra/drm.c:597:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/gpu/drm

[PATCH] drm/tegra: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/gpu/drm/tegra/drm.c:597:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/gpu/drm/tegra/drm.c | 4 +--- 1 file

[PATCH] drm/tegra: gem: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/gpu/drm/tegra/gem.c:420:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/gpu/drm

[PATCH] drm/tegra: gem: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/gpu/drm/tegra/gem.c:420:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/gpu/drm/tegra/gem.c | 4 +--- 1 file

[PATCH] coresight: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/hwtracing/coresight/coresight-dynamic-replicator.c | 4 +--- drivers/hwtracing/coresight/cor

[PATCH] coresight: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/hwtracing/coresight/coresight-dynamic-replicator.c | 4 +--- drivers/hwtracing/coresight/coresight-funnel.c

[PATCH] firmware: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/firmware/efi/efi.c:610:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/fi

[PATCH] firmware: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/firmware/efi/efi.c:610:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/firmware/qemu_fw_cfg.c | 4 +--- 1

[PATCH] efi: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/firmware/efi/efi.c:610:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/firmwa

[PATCH] efi: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/firmware/efi/efi.c:610:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/firmware/efi/efi.c | 2 +- 1 file

[PATCH] pcmcia: at91_cf: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/pcmcia/at91_cf.c:239:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/pcmcia/at9

[PATCH] pcmcia: at91_cf: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/pcmcia/at91_cf.c:239:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/pcmcia/at91_cf.c | 4 +--- 1 file changed

[PATCH] misc: vexpress: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/misc/vexpress-syscfg.c:273:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/misc/ve

[PATCH] misc: vexpress: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/misc/vexpress-syscfg.c:273:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/misc/vexpress-syscfg.c | 4 +--- 1

[PATCH] misc: mic: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/misc/mic/scif/scif_epd.h:168:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/mi

[PATCH] misc: mic: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/misc/mic/scif/scif_epd.h:168:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/misc/mic/scif/scif_epd.h | 4

[PATCH] IB/core: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/infiniband/core/uverbs_cmd.c:1156:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- d

[PATCH] IB/core: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/infiniband/core/uverbs_cmd.c:1156:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/infiniband/core

[PATCH] virtio-mmio: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/virtio/virtio_mmio.c:653:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/

[PATCH] virtio-mmio: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/virtio/virtio_mmio.c:653:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/virtio/virtio_mmio.c | 4 +--- 1 file

[PATCH] DCA: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/dca/dca-sysfs.c:43:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/dca/dca-sysfs

[PATCH] DCA: Use PTR_ERR_OR_ZERO()

2017-11-28 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: drivers/dca/dca-sysfs.c:43:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- drivers/dca/dca-sysfs.c | 4 +--- 1 file changed, 1

[PATCH] tools lib bpf: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: tools/lib/bpf/libbpf.c:1744:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- tools/lib/bpf/libbpf

[PATCH] tools lib bpf: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: tools/lib/bpf/libbpf.c:1744:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- tools/lib/bpf/libbpf.c | 4 +--- 1 file changed, 1

[PATCH] sysfs: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: fs/sysfs/group.c:409:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- fs/sysfs/group.c | 2 +-

[PATCH] sysfs: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: fs/sysfs/group.c:409:8-14: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- fs/sysfs/group.c | 2 +- 1 file changed, 1 insertion

[PATCH] ovl: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: fs/overlayfs/overlayfs.h:179:11-17: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- fs/overlayfs/overl

[PATCH] ovl: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: fs/overlayfs/overlayfs.h:179:11-17: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych --- fs/overlayfs/overlayfs.h | 2 +- 1 file changed

[PATCH] mm/page_owner: Use PTR_ERR_OR_ZERO()

2017-11-27 Thread Vasyl Gomonovych
Fix ptr_ret.cocci warnings: mm/page_owner.c:639:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- mm/page_owner.c | 4 +---

  1   2   >