[PATCH net-next] net: ipv6: Refactor in rt6_age_examine_exception

2021-03-31 Thread Xu Jia
The logic in rt6_age_examine_exception is confusing. The commit is to refactor the code. Signed-off-by: Xu Jia --- net/ipv6/route.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/net/ipv6/route.c b/net/ipv6/route.c index ebb7519bec2a..f15c7605b11d 100644 --- a/net/ipv6

[PATCH -next] staging: rtl8723bs: core: Remove unused variable 'res'

2021-03-31 Thread Xu Jia
The variable 'res' is not used in function, this commit remove it to fix the warning. Reported-by: Hulk Robot Signed-off-by: Xu Jia --- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/rtl8

[PATCH -next] KVM: arm64: Make symbol '_kvm_host_prot_finalize' static

2021-03-31 Thread Xu Jia
The sparse tool complains as follows: arch/arm64/kvm/arm.c:1900:6: warning: symbol '_kvm_host_prot_finalize' was not declared. Should it be static? This symbol is not used outside of arm.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Xu Jia --- arch

[PATCH -next] staging: rtl8723bs: core: fix error return

2021-03-25 Thread Xu Jia
Function rtw_init_bcmc_stainfo() is always return success. Variable 'ret' set but not used. Reported-by: Hulk Robot Signed-off-by: Xu Jia --- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8

[PATCH -next] firewire: net: remove unused variable 'dev'

2021-03-24 Thread Xu Jia
The variable 'dev' is not used in function, remove it to fix the warning. Reported-by: Hulk Robot Signed-off-by: Xu Jia --- drivers/firewire/net.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c index 28785642a5c5..4c3fd2eed1da 10

[PATCH -next] applicom: fix some err codes returned by ac_ioctl

2021-03-24 Thread Xu Jia
When cmd > 6 or copy_to_user() fail, The variable 'ret' would not be returned back. Fix the 'ret' set but not used. Signed-off-by: Xu Jia --- drivers/char/applicom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/applicom.c b/driver

[PATCH bpf-next] bpf: clean up for 'const static' in bpf_lsm.c

2021-02-04 Thread Xu Jia
Prefer 'static const' over 'const static' here Signed-off-by: Xu Jia --- kernel/bpf/bpf_lsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bpf/bpf_lsm.c b/kernel/bpf/bpf_lsm.c index 1622a44d1617..75b1c678d558 100644 --- a/kernel/bpf/bpf_ls