[PATCH] tools/testing: Remove unused variable

2021-04-14 Thread zuoqilin1
From: zuoqilin Remove unused variable "ret2". Signed-off-by: zuoqilin --- tools/testing/selftests/bpf/progs/test_tunnel_kern.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/progs/test_tunnel_kern.c b/tools/testing/selftests/bpf/progs/test_tunn

[PATCH] tools/bootconfig: Simplify expression

2021-04-14 Thread zuoqilin1
From: zuoqilin It is not necessary to define the variable ret to receive the return value of the xbc_node_compose_key() method. Signed-off-by: zuoqilin --- tools/bootconfig/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/bootconfig/main.c b/tools/bootconfig/

[PATCH] fs/debugfs: Convert to DEFINE_SHOW_ATTRIBUTE

2021-04-02 Thread zuoqilin1
From: zuoqilin Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: zuoqilin --- fs/debugfs/file.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 686e0ad..d670ca3 100644 --- a/fs/debugfs/file.c +

[PATCH] arm/mm: Convert to DEFINE_SHOW_ATTRIBUTE

2021-04-02 Thread zuoqilin1
From: zuoqilin Use DEFINE_SHOW_ATTRIBUTE macro to simplify the code. Signed-off-by: zuoqilin --- arch/arm/mm/ptdump_debugfs.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/mm/ptdump_debugfs.c b/arch/arm/mm/ptdump_debugfs.c index 598b636..6a62bce 1006

[PATCH] x86: Simplify the return expression

2021-03-26 Thread zuoqilin1
From: zuoqilin Simplify the return expression of kvm_compute_tsc_offset(). Signed-off-by: zuoqilin --- arch/x86/kvm/x86.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index fe806e8..3906c1b 100644 --- a/arch/x86/kvm/x86.c +++

[PATCH] arch/powerpc: Remove unneeded variable: "ret"

2021-03-26 Thread zuoqilin1
From: zuoqilin Remove unneeded variable: "ret". Signed-off-by: zuoqilin --- arch/powerpc/platforms/pseries/cmm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/pseries/cmm.c b/arch/powerpc/platforms/pseries/cmm.c index 45a3a30..95ebb0c 100644 ---

[PATCH] net/smc: Simplify the return expression

2021-03-22 Thread zuoqilin1
From: zuoqilin Simplify the return expression of smc_ism_signal_shutdown(). Signed-off-by: zuoqilin --- net/smc/smc_ism.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/smc/smc_ism.c b/net/smc/smc_ism.c index 9c6e958..c3558cc 100644 --- a/net/smc/smc_ism.c +++ b/net

[PATCH] nfc/fdp: Simplify the return expression of fdp_nci_open()

2021-03-18 Thread zuoqilin1
From: zuoqilin Simplify the return expression. Signed-off-by: zuoqilin --- drivers/nfc/fdp/fdp.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index 4dc7bd7..824f2da 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp

[PATCH] hwmon: Fix spelling typo

2021-03-18 Thread zuoqilin1
From: zuoqilin Change 'revsion' to 'revision'. Signed-off-by: zuoqilin --- drivers/hwmon/ftsteutates.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwmon/ftsteutates.c b/drivers/hwmon/ftsteutates.c index ef88a15..e87aa00 100644 --- a/drivers/hwmon/ftsteutates.c +

[PATCH] drm/msm: Remove unneeded variable: "rc"

2021-03-17 Thread zuoqilin1
From: zuoqilin Remove unneeded variable: "rc". Signed-off-by: zuoqilin --- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index 9cc8166..8cb3d01 100644 --- a/drivers/

[PATCH] display: Fix typo issue

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'befor' to 'before'. Signed-off-by: zuoqilin --- drivers/gpu/drm/i915/display/vlv_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/vlv_dsi.c b/drivers/gpu/drm/i915/display/vlv_dsi.c index f94025e..45187ff 100644 --- a

[PATCH] rtl8821ae: Fix spelling typo

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'revsions' to 'revisions'. Signed-off-by: zuoqilin --- tools/perf/util/header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index 20effdf..4572aa9 100644 --- a/tools/perf/util/header.c +++ b/tools

[PATCH] drivers/block: Fix typo and remove duplicate word

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'untill' to 'until'. remove duplicate word 'the'. Signed-off-by: zuoqilin --- drivers/block/nbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 4ff71b5..8e63efc 100644 --- a/drivers/block/nbd.c +++ b/d

[PATCH] fs: Fix typo issue

2021-03-17 Thread zuoqilin1
From: zuoqilin Change 'inacitve' to 'inactive'. Signed-off-by: zuoqilin --- fs/jfs/jfs_dmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index 7aee156..91f4ec93 100644 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -3660,7 +366

[PATCH] mwifiex: Remove unneeded variable: "ret"

2021-03-16 Thread zuoqilin1
From: zuoqilin Remove unneeded variable: "ret" Signed-off-by: zuoqilin --- drivers/net/wireless/marvell/mwifiex/scan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/marvell/mwifiex/scan.c b/drivers/net/wireless/marvell/mwifiex/scan.c index c2a685f.

[PATCH] mwifiex: Remove redundant assignment

2021-03-16 Thread zuoqilin1
From: zuoqilin There is no need to define the err variable, and then assign -EINVAL, we can directly return -EINVAL. Signed-off-by: zuoqilin --- drivers/net/wireless/marvell/mwifiex/ie.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/wireless/marvell/mwif

[PATCH] media/pci: Assign value when defining variables

2021-03-16 Thread zuoqilin1
From: zuoqilin When defining variables and assigning values can be done at the same time. Signed-off-by: zuoqilin --- drivers/media/pci/pt1/pt1.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/pci/pt1/pt1.c b/drivers/media/pci/pt1/pt1.c index 72b191c..f

[PATCH] include/linux: Fix typo issue

2021-03-15 Thread zuoqilin1
From: zuoqilin Change 'bufer' to 'buffer'. Signed-off-by: zuoqilin --- include/linux/mpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mpi.h b/include/linux/mpi.h index 3e5358f..6e6b15a 100644 --- a/include/linux/mpi.h +++ b/include/linux/mpi.h @@ -267,7 +

[PATCH] scripts/spelling.txt: Add "diabled" typo

2021-03-03 Thread zuoqilin1
From: zuoqilin Increase "diabled" spelling error check. Signed-off-by: zuoqilin --- scripts/spelling.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 2e3ba91..e5f3b7e 100644 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt @@ -470,6

[PATCH] scsi: FlashPoint: Fix typo issue

2021-03-03 Thread zuoqilin1
From: zuoqilin Change 'defualt' to 'default'. Signed-off-by: zuoqilin --- drivers/scsi/FlashPoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c index 24ace18..f479c54 100644 --- a/drivers/scsi/FlashPoint.c +++ b/driv

[PATCH] i2c: sis630: fix spellint typo

2021-02-28 Thread zuoqilin1
From: zuoqilin change 'adress' to 'address' Signed-off-by: zuoqilin --- drivers/i2c/busses/i2c-sis630.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis630.c index cfb8e04..87d5625 100644 --- a/drivers/i2c/busses/i

[PATCH] i2c/busses: fix spellint typo

2021-02-25 Thread zuoqilin1
From: zuoqilin change 'adress' to 'address' Signed-off-by: zuoqilin --- drivers/i2c/busses/i2c-sis630.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-sis630.c b/drivers/i2c/busses/i2c-sis630.c index cfb8e04..87d5625 100644 --- a/drivers/i2c/busses/i

[PATCH] include/linux: remove duplicate description

2021-02-23 Thread zuoqilin1
From: zuoqilin linux/spinlock.h Signed-off-by: zuoqilin --- include/linux/spinlock.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 7989784..732150e 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h @@ -43,8 +43

[PATCH] media/i2c: remove unneeded variable: "ret"

2021-02-22 Thread zuoqilin1
From: zuoqilin remove unneeded variable: "ret" Signed-off-by: zuoqilin --- drivers/media/i2c/max2175.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/i2c/max2175.c b/drivers/media/i2c/max2175.c index 661208c..bc46a09 100644 --- a/drivers/media/i2c/max2175.c

[PATCH] scripts/gcc-plugins: remove unneeded variable: "ret"

2021-02-22 Thread zuoqilin1
From: zuoqilin remove unneeded variable: "ret" Signed-off-by: zuoqilin --- scripts/gcc-plugins/structleak_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/gcc-plugins/structleak_plugin.c b/scripts/gcc-plugins/structleak_plugin.c index 29b480c..d7190e4 100

[PATCH] iio: fix typo

2021-01-27 Thread zuoqilin1
From: zuoqilin change 'regster' to 'register' Signed-off-by: zuoqilin --- drivers/iio/dac/ad5791.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5791.c b/drivers/iio/dac/ad5791.c index e3ffa4b..615d72c 100644 --- a/drivers/iio/dac/ad5791.c +++ b/drivers/

[PATCH] scripts/spelling.txt: increase error-prone spell checking

2021-01-26 Thread zuoqilin1
From: zuoqilin Increase exeeds spelling error check. Signed-off-by: zuoqilin --- scripts/spelling.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 953f4a2..740aba3 100644 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt @@ -566,6 +5

[PATCH] drivers/power/supply: fix typo

2021-01-26 Thread zuoqilin1
From: zuoqilin Change 'exeeds' to 'exceeds'. Signed-off-by: zuoqilin --- drivers/power/supply/charger-manager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index 6fcebe4..731351d8 10064