[PATCH] x86: platform: iosf_mbi: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-24 Thread Yang Li
Fix the following coccicheck warning: ./arch/x86/platform/intel/iosf_mbi.c:482:0-23: WARNING: iosf_mcr_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/x86/platform/intel/iosf_mbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] mips: cavium: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-24 Thread Yang Li
Fix the following coccicheck warning: ./arch/mips/cavium-octeon/oct_ilm.c:65:0-23: WARNING: reset_statistics_ops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/mips/cavium-octeon/oct_ilm.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH] mfd: lm3533: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/mfd/lm3533-core.c:361:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/mfd/lm3533-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/lm3533-core.c b/drivers/mfd

[PATCH] pcmcia: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/pcmcia/cistpl.c:1584:53-54: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/pcmcia/cistpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pcmcia/cistpl.c b/drivers/pcmcia

[PATCH] power: supply: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/power/supply/ds2760_battery.c:201:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/power/supply/ds2760_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power

[PATCH] hwmon: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/hwmon/hwmon.c:82:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/hwmon/hwmon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c

[PATCH] banalabs: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/misc/habanalabs/common/sysfs.c:347:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/misc/habanalabs/common/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc

[PATCH] drivers: ipa: Add missing IRQF_ONESHOT

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/net/ipa/ipa_smp2p.c:186:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers

[PATCH] gpiolib: acpi: Add missing IRQF_ONESHOT

2021-02-23 Thread Yang Li
fixed the following coccicheck: ./drivers/gpio/gpiolib-acpi.c:176:7-27: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Make sure threaded IRQs without a primary handler are always request with IRQF_ONESHOT Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers

[PATCH] device-dax: Switch to using the new API kobj_to_dev()

2021-02-22 Thread Yang Li
fixed the following coccicheck: ./drivers/dax/bus.c:486:60-61: WARNING opportunity for kobj_to_dev() ./drivers/dax/bus.c:1215:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/dax/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] media: solo6x10: Switch to using the new API kobj_to_dev()

2021-02-22 Thread Yang Li
fixed the following coccicheck: ./drivers/media/pci/solo6x10/solo6x10-core.c:371:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/media/pci/solo6x10/solo6x10-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] ibmveth: Switch to using the new API kobj_to_dev()

2021-02-22 Thread Yang Li
fixed the following coccicheck: ./drivers/net/ethernet/ibm/ibmveth.c:1805:51-52: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/ibm/ibmveth.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net

[PATCH] scsi: ipr: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./drivers/scsi/ipr.c:4209:61-62: WARNING opportunity for kobj_to_dev() ./drivers/scsi/ipr.c:4268:61-62: WARNING opportunity for kobj_to_dev() ./drivers/scsi/ipr.c:4457:61-62: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li

[PATCH] scsi: lpfc: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
Robot Signed-off-by: Yang Li --- drivers/scsi/lpfc/lpfc_attr.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_attr.c b/drivers/scsi/lpfc/lpfc_attr.c index 4528166..a3bde0e 100644 --- a/drivers/scsi/lpfc/lpfc_attr.c +++ b/drivers/scsi/lpfc

[PATCH] scsi: qedf: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./drivers/scsi/qedf/qedf_attr.c:105:26-27: WARNING opportunity for kobj_to_dev() ./drivers/scsi/qedf/qedf_attr.c:134:24-25: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/qedf/qedf_attr.c | 6 ++ 1 file

[PATCH] scsi: iscsi: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
() ./drivers/scsi/scsi_transport_iscsi.c:4312:61-62: WARNING opportunity for kobj_to_dev() ./drivers/scsi/scsi_transport_iscsi.c:4456:61-62: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/scsi_transport_iscsi.c | 10 +- 1 file changed, 5

[PATCH] w1: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./include/linux/w1.h:314:62-63: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- include/linux/w1.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/w1.h b/include/linux/w1.h index 949d3b1

[PATCH] platform/x86: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./drivers/platform/x86/ideapad-laptop.c:523:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH] scsi: ibmvfc: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./drivers/scsi/ibmvscsi/ibmvfc.c:3161:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi

[PATCH] ndtest: Switch to using the new API kobj_to_dev()

2021-02-21 Thread Yang Li
fixed the following coccicheck: ./tools/testing/nvdimm/test/ndtest.c:785:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/nvdimm/test/ndtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/nvdimm

[PATCH] nvme-core: Switch to using the new API kobj_to_dev()

2021-02-20 Thread Yang Li
fixed the following coccicheck: ./drivers/nvme/host/core.c:3440:60-61: WARNING opportunity for kobj_to_dev() ./drivers/nvme/host/core.c:3679:60-61: WARNING opportunity for kobj_to_dev() Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/nvme/host/core.c | 4 ++-- 1 file changed, 2

[PATCH] powerpc/sstep: Use bitwise instead of arithmetic operator for flags

2021-02-20 Thread Yang Li
| Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/lib/sstep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index ede093e..e568cc5 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c

[PATCH] KVM: s390: use ARRAY_SIZE instead of division operation

2021-02-20 Thread Yang Li
This eliminates the following coccicheck warning: ./arch/s390/tools/gen_facilities.c:154:37-38: WARNING: Use ARRAY_SIZE ./arch/s390/tools/gen_opcode_table.c:141:39-40: WARNING: Use ARRAY_SIZE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/s390/tools/gen_facilities.c | 2 +- arch

[PATCH] powerpc: use ARRAY_SIZE instead of division operation

2021-02-20 Thread Yang Li
This eliminates the following coccicheck warning: ./arch/powerpc/boot/mktree.c:130:31-32: WARNING: Use ARRAY_SIZE Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/boot/mktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/boot/mktree.c b/arch

[PATCH v2] xfrm: Fix incorrect types in assignment

2021-02-19 Thread Yang Li
Fix the following sparse warnings: net/xfrm/xfrm_policy.c:1303:22: warning: incorrect type in assignment (different address spaces) Reported-by: Abaci Robot Signed-off-by: Yang Li --- net/xfrm/xfrm_policy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/xfrm

[PATCH] xfrm: Fix incorrect types in assignment

2021-02-19 Thread Yang Li
Fix the following sparse warnings: net/xfrm/xfrm_policy.c:1303:22: warning: incorrect type in assignment (different address spaces) Reported-by: Abaci Robot Signed-off-by: Yang Li --- net/xfrm/xfrm_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xfrm

[PATCH] scsi: lpfc: Fix different base types in assignment

2021-02-19 Thread Yang Li
Fix the following sparse warnings: drivers/scsi/lpfc/lpfc_nvme.c:833:22: warning: incorrect type in assignment (different base types) cpu_to_le32() returns __le32, but sgl->sge_len is uint32_t type. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/lpfc/lpfc_nvme.c | 2 +-

[PATCH] drm/radeon/dpm: fix non-restricted types with le16_to_cpu()

2021-02-18 Thread Yang Li
Signed-off-by: Yang Li --- drivers/gpu/drm/radeon/rv6xx_dpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/rv6xx_dpm.c b/drivers/gpu/drm/radeon/rv6xx_dpm.c index 69d380f..e6ab99e 100644 --- a/drivers/gpu/drm/radeon/rv6xx_dpm.c +++ b/drivers/gpu

[PATCH] selftests: timers: set-timer-lat: remove unneeded semicolon

2021-02-18 Thread Yang Li
/inconsistency-check.c:75:2-3: Unneeded semicolon ./tools/testing/selftests/timers/alarmtimer-suspend.c:82:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/timers/alarmtimer-suspend.c | 2 +- tools/testing/selftests/timers/inconsistency-check.c

[PATCH] drm/amd/display: Simplify bool conversion

2021-02-18 Thread Yang Li
Fix the following coccicheck warning: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8142:16-21: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH] selftests/powerpc: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c:327:4-5: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/powerpc/nx-gzip/gzfht_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] selftests: bpf: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/bpf/test_flow_dissector.c:506:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/bpf/test_flow_dissector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] selftests/ipc: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/ipc/msgque.c:72:3-4: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:183:2-3: Unneeded semicolon ./tools/testing/selftests/ipc/msgque.c:191:2-3: Unneeded semicolon Signed-off-by: Yang Li --- tools/testing/selftests

[PATCH] selftests/net: so_txtime: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/net/so_txtime.c:199:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/net/so_txtime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing

[PATCH] crypto: sha: remove unneeded semicolon

2021-02-08 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/crypto/sha1-spe-glue.c:110:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/crypto/sha1-spe-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/crypto/sha1-spe

[PATCH v2] perf script: Simplify bool conversion

2021-02-08 Thread Yang Li
Fix the following coccicheck warning: ./tools/perf/builtin-script.c:2789:36-41: WARNING: conversion to bool not needed here ./tools/perf/builtin-script.c:3237:48-53: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- Change in v2: -Change

[PATCH] platform/chrome: wilco_ec: convert stream-like files from nonseekable_open -> stream_open

2021-02-07 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/platform/chrome/wilco_ec/telemetry.c:259:1-17: WARNING: telem_fops: .read() and .write() have stream semantic; safe to change nonseekable_open -> stream_open. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/platform/chr

[PATCH] gpiolib: cdev: convert stream-like files from

2021-02-07 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpio/gpiolib-cdev.c:2307:7-23: WARNING: gpio_fileops: .read() has stream semantic; safe to change nonseekable_open -> stream_open. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpio/gpiolib-cdev.c | 2 +- 1 file changed

[PATCH v2] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-07 Thread Yang Li
ble: "rc". Return "0" on line 1527 Reported-by: Abaci Robot Signed-off-by: Yang Li --- Changes in v2 -turn functions forward references to void type. fs/jfs/jfs_txnmgr.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/f

[PATCH] bpf/benchs/bench_ringbufs: remove unneeded semicolon

2021-02-06 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/bpf/benchs/bench_ringbufs.c:322:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/bpf/benchs/bench_ringbufs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] selftests/x86/ldt_gdt: remove unneeded semicolon

2021-02-06 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/testing/selftests/x86/ldt_gdt.c:610:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/testing/selftests/x86/ldt_gdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests

[PATCH] scsi: qla4xxx: turn qla4xxx_copy_from_fwddb_param() into void

2021-02-06 Thread Yang Li
This function always return '0' and no callers use the return value. So make it a void function. This eliminates the following coccicheck warning: ./drivers/scsi/qla4xxx/ql4_os.c:3642:5-7: Unneeded variable: "rc". Return "0" on line 3741 Reported-by: Abaci Robot Si

[PATCH] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-06 Thread Yang Li
ble: "rc". Return "0" on line 1527 Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/jfs/jfs_txnmgr.c | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index dca8edd..c42bf86 10064

[PATCH] scsi: isci: Remove redundant initialization of variable 'status'

2021-02-03 Thread Yang Li
tus". Return "SCI_SUCCESS" on line 2177 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/isci/request.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 6e08179..8676282 100644

[PATCH] scsi: lpfc: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '1' instead. It fixes the following warning detected by coccinelle: Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/lpfc/lpfc_sli.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/lpfc

[PATCH] scsi: ipr: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/scsi/ipr.c:9508:5-7: Unneeded variable: "rc". Return "0" on line 9524 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/scsi/i

[PATCH] scsi: qla4xxx: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/scsi/qla4xxx/ql4_os.c:3642:5-7: Unneeded variable: "rc". Return "0" on line 3741 Reported-by: Abaci Robot Signed-off-by: Yang Li ---

[PATCH] media: atomisp: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/staging/media/atomisp/pci/sh_css_mipi.c:39:5-8: Unneeded variable: "err". Return "0" on line 44 Reported-by: Abaci Robot Signed-off-by: Y

[PATCH] media: atomisp: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/staging/media/atomisp/pci/sh_css_mipi.c:39:5-8: Unneeded variable: "err". Return "0" on line 44 Reported-by: Abaci Robot Signed-off-by: Y

[PATCH] btrfs: Remove unneeded return variable

2021-02-03 Thread Yang Li
urn "0" on line 4410 Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/btrfs/disk-io.c| 5 ++--- fs/btrfs/extent_map.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 6b35b7e..e951da7 100644 --- a/fs/

[PATCH] jfs: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./fs/jfs/jfs_txnmgr.c:1370:5-7: Unneeded variable: "rc". Return "0" on line 1417 Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/jfs/jfs_tx

[PATCH] ocfs2: Remove unneeded return variable

2021-02-03 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./fs/ocfs2/stack_o2cb.c:69:5-16: Unneeded variable: "o2dlm_flags". Return "0" on line 84 Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/oc

[PATCH] samples: bpf: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./samples/bpf/cookie_uid_helper_example.c:316:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- samples/bpf/cookie_uid_helper_example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/bpf

[PATCH] drm/msm/dp: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/msm/dp/dp_ctrl.c:1161:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/msm/dp/dp_ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/dp/dp_ctrl.c

[PATCH] phy: phy-brcm-sata: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/phy/broadcom/phy-brcm-sata.c:654:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/phy/broadcom/phy-brcm-sata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/broadcom/phy

[PATCH] power: vexpress: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/power/reset/vexpress-poweroff.c:136:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/power/reset/vexpress-poweroff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset

[PATCH] pwm: lpc18xx-sct: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/pwm/pwm-lpc18xx-sct.c:292:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/pwm/pwm-lpc18xx-sct.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-lpc18xx-sct.c b/drivers

[PATCH] remoteproc: qcom_wcnss: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/remoteproc/qcom_wcnss.c:573:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/remoteproc/qcom_wcnss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_wcnss.c b

[PATCH] mt76: mt7915: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/net/wireless/mediatek/mt76/mt7915/mac.c:1694:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] Input: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/input/touchscreen/zinitix.c:164:31-32: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/input/touchscreen/zinitix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen

[PATCH] ide: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/ide/ide-taskfile.c:167:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/ide/ide-taskfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide

[PATCH] media: i2c: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/media/i2c/ov02a10.c:703:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/media/i2c/ov02a10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov02a10.c b/drivers/media

[PATCH] octeontx2-af: remove unneeded semicolon

2021-02-02 Thread Yang Li
semicolon ./drivers/net/ethernet/marvell/octeontx2/af/rvu.c:1326:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 4 ++-- drivers/net/ethernet/marvell

[PATCH] soc: fsl: guts: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/soc/fsl/guts.c:120:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/soc/fsl/guts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/guts.c b/drivers/soc/fsl/guts.c index

[PATCH] scsi: target: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/target/sbp/sbp_target.c:1009:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/target/sbp/sbp_target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/sbp/sbp_target.c b

[PATCH] scsi: remove unneeded semicolon

2021-02-02 Thread Yang Li
.c:575:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:598:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:631:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:649:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:667:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li

[PATCH] ntfs: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./fs/ntfs/super.c:1615:2-3: Unneeded semicolon ./fs/ntfs/super.c:1684:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/ntfs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ntfs/super.c

[PATCH] drm/msm/dpu: remove unneeded semicolon

2021-02-02 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:752:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm

[PATCH] drm/kmb: remove unneeded semicolon

2021-02-01 Thread Yang Li
/drm/kmb/kmb_dsi.c:361:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/kmb/kmb_dsi.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/kmb/kmb_dsi.c b/drivers/gpu/drm/kmb/kmb_dsi.c index 4b5d82a..231041b

[PATCH] bus: ti-sysc: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/bus/ti-sysc.c:1595:2-3: Unneeded semicolon ./drivers/bus/ti-sysc.c:2833:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/bus/ti-sysc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] PM / devfreq: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/devfreq/rk3399_dmc.c:403:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/devfreq/rk3399_dmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers

[PATCH] apei: erst: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/acpi/apei/erst.c:691:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/acpi/apei/erst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/apei/erst.c b/drivers/acpi/apei

[PATCH] dmaengine: qcom: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/dma/qcom/gpi.c:1703:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/dma/qcom/gpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c index

[PATCH] psci: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/firmware/psci/psci.c:141:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/firmware/psci/psci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/psci/psci.c b/drivers

[PATCH] firmware: ti_sci: rm: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/firmware/ti_sci.c:1762:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/firmware/ti_sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware

[PATCH] s390/cpum_cf: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/s390/kernel/perf_cpum_cf.c:272:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/s390/kernel/perf_cpum_cf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/kernel/perf_cpum_cf.c b

[PATCH] riscv: kasan: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/riscv/mm/kasan_init.c:103:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/riscv/mm/kasan_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/mm/kasan_init.c b/arch/riscv/mm

[PATCH] powerpc/book3s64: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/platforms/pseries/lpar.c:1632:2-3: Unneeded semicolon ./arch/powerpc/platforms/pseries/lpar.c:1663:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/platforms/pseries/lpar.c | 4 ++-- 1 file

[PATCH] dma-mapping: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/platforms/ps3/system-bus.c:606:2-3: Unneeded semicolon ./arch/powerpc/platforms/ps3/system-bus.c:765:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/platforms/ps3/system-bus.c | 4 ++-- 1 file

[PATCH] powerpc/64s: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/platforms/powernv/setup.c:160:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/platforms/powernv/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms

[PATCH] KVM: PPC: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/kvm/booke.c:701:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/kvm/booke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kvm/booke.c b/arch/powerpc/kvm

[PATCH] powerpc/prom_init: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/kernel/prom_init.c:2990:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/kernel/prom_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/prom_init.c b

[PATCH] powerpc/eeh: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/kernel/eeh.c:782:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/kernel/eeh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel

[PATCH] crypto: powerpc: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/powerpc/crypto/sha256-spe-glue.c:132:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/powerpc/crypto/sha256-spe-glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/crypto

[PATCH] MIPS: malta-time: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/mips/mti-malta/malta-time.c:141:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/mips/mti-malta/malta-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/mti-malta/malta-time.c b

[PATCH] KVM: MIPS: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/mips/kvm/mips.c:151:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/mips/kvm/mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/kvm/mips.c b/arch/mips/kvm/mips.c index 3d6a7f5

[PATCH] arm: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./arch/arm/mach-artpec/board-artpec6.c:42:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- arch/arm/mach-artpec/board-artpec6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-artpec/board

[PATCH] gcc-plugins: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./scripts/gcc-plugins/latent_entropy_plugin.c:527:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- scripts/gcc-plugins/latent_entropy_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gcc

[PATCH] gcc-plugins: Remove unneeded return variable

2021-02-01 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./scripts/gcc-plugins/structleak_plugin.c:173:14-17: Unneeded variable: "ret". Return "0" on line 203 Reported-by: Abaci Robot Signed-off-by: Yang

[PATCH] ASoC: fsl_xcvr: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./sound/soc/fsl/fsl_xcvr.c:739:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- sound/soc/fsl/fsl_xcvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl

[PATCH] ASoC: Intel: catpt: remove unneeded semicolon

2021-02-01 Thread Yang Li
Eliminate the following coccicheck warning: ./sound/soc/intel/catpt/pcm.c:355:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- sound/soc/intel/catpt/pcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/catpt/pcm.c b/sound/soc

[PATCH] treewide: remove unneeded semicolon

2021-01-31 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/virtio/virtio-trace/trace-agent-ctl.c:78:2-3: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/virtio/virtio-trace/trace-agent-ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtio

[PATCH] perf metricgroup: remove unneeded semicolon

2021-01-31 Thread Yang Li
Eliminate the following coccicheck warning: ./tools/perf/util/metricgroup.c:382:3-4: Unneeded semicolon Reported-by: Abaci Robot Signed-off-by: Yang Li --- tools/perf/util/metricgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/metricgroup.c b/tools

[PATCH] misc: rtsx: Remove unneeded return variable

2021-01-31 Thread Yang Li
This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./drivers/misc/cardreader/rtsx_pcr.c:1808:5-8: Unneeded variable: "ret". Return "0" on line 1833. Reported-by: Abaci Robot Signed-off-by: Yang L

[PATCH] power: supply: Simplify bool conversion

2021-01-29 Thread Yang Li
Fix the following coccicheck warning: ./drivers/power/supply/cpcap-charger.c:416:31-36: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/power/supply/cpcap-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] phy: cpcap-usb: Simplify bool conversion

2021-01-28 Thread Yang Li
Fix the following coccicheck warning: ./drivers/phy/motorola/phy-cpcap-usb.c:146:31-36: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/phy/motorola/phy-cpcap-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 4/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:533:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c | 6 ++ 1 file

[PATCH 3/4] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c:161:2-7: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c | 3 +-- 1 file changed

[PATCH net-next] cxgb4: remove redundant NULL check

2021-01-26 Thread Yang Li
/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c:157:2-7: WARNING: NULL check before some freeing functions is not needed. ./drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c:525:3-9: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li

[PATCH 2/4] cxgb4: remove redundant NULL check

2021-01-25 Thread Yang Li
Fix below warnings reported by coccicheck: ./drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3558:2-8: WARNING: NULL check before some freeing functions is not needed. Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 3 +-- 1 file changed, 1

<    1   2   3   >