[PATCH] net: qed: remove unused including

2021-04-08 Thread Tian Tao
Remove including that don't need it. Signed-off-by: Tian Tao Signed-off-by: Zhiqi Song --- include/linux/qed/qed_ll2_if.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/qed/qed_ll2_if.h b/include/linux/qed/qed_ll2_if.h index 2f64ed7..ea273ba 100644 --- a/include/linu

[PATCH] cxgb4: fix unnecessary NULL check warnings

2021-02-09 Thread Tian Tao
Remove NULL checks before vfree() to fix these warnings: drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c:3558:2-8: WARNING: NULL check before some freeing functions is not needed. Signed-off-by: Tian Tao --- drivers/net/ethernet/chelsio/cxgb4/cudbg_lib.c | 3 +-- 1 file changed, 1 insertion

[PATCH] arm64: traps: remove duplicate include statement

2020-12-27 Thread Tian Tao
asm/exception.h is included more than once. Remove the one that isn't necessary. Signed-off-by: Tian Tao --- arch/arm64/kernel/traps.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c index 08156be..6895ce7 100644 --- a/arch/arm64/k

[PATCH] rtw88: coex: remove useless if and else

2020-12-22 Thread Tian Tao
Fix the following coccinelle report: drivers/net/wireless/realtek/rtw88/coex.c:1619:3-5: WARNING: possible condition with no effect (if == else) Signed-off-by: Tian Tao --- drivers/net/wireless/realtek/rtw88/coex.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a

[PATCH] bpf: remove unused including

2020-12-15 Thread Tian Tao
Remove including that don't need it. Signed-off-by: Tian Tao --- kernel/bpf/syscall.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index 4caf06f..c3bb03c8 100644 --- a/kernel/bpf/syscall.c +++ b/kernel/bpf/syscall.c @@ -17,7 +17,6 @@ #in

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

2020-11-22 Thread Tian Tao
Switch to using the new API kobj_to_dev(). Signed-off-by: Tian Tao --- drivers/net/wireless/ti/wlcore/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/ti/wlcore/sysfs.c index 7ac1814..5cf0379 100644 --- a

[PATCH] net/core: use xx_zalloc instead xx_alloc and memset

2020-11-18 Thread Tian Tao
use kmem_cache_zalloc instead kmem_cache_alloc and memset. Signed-off-by: Tian Tao --- net/core/skbuff.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/net/core/skbuff.c b/net/core/skbuff.c index c9a5a3c..3449c1c 100644 --- a/net/core/skbuff.c +++ b/net/core

[PATCH] vhost_vdpa: switch to vmemdup_user()

2020-11-10 Thread Tian Tao
Replace opencoded alloc and copy with vmemdup_user() Signed-off-by: Tian Tao --- drivers/vhost/vdpa.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 2754f30..4c39583 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers

[PATCH] net: switchdev: Fixed kerneldoc warning

2020-09-22 Thread Tian Tao
Update kernel-doc line comments to fix warnings reported by make W=1. net/switchdev/switchdev.c:413: warning: Function parameter or member 'extack' not described in 'call_switchdev_notifiers' Signed-off-by: Tian Tao --- net/switchdev/switchdev.c | 2 +- 1 file change

[PATCH] vhost_vdpa: Fix duplicate included kernel.h

2020-09-14 Thread Tian Tao
linux/kernel.h is included more than once, Remove the one that isn't necessary. Signed-off-by: Tian Tao --- drivers/vhost/vdpa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 3fab94f..95e2b83 100644 --- a/drivers/vhost/vdpa.c +++ b/dr