[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] 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] 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