[PATCH] xen-netback: use kstrdup instead of open-coding it

2022-09-20 Thread cgel . zte
From: Minghao Chi use kstrdup instead of open-coding it. Reported-by: Zeal Robot Signed-off-by: Minghao Chi --- drivers/net/xen-netback/xenbus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index e85b

[PATCH linux-next] drivers/xen/xenbus/xenbus_client.c: fix bugon.cocci warnings

2021-08-24 Thread CGEL
From: Jing Yangyang Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Reported-by: Zeal Robot Signed-off-by: Jing Yangyang --- drivers/xen/xenbus/xenbus_client.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a

[PATCH linux-next] drivers/xen/events/events_base.c: fix bugon.cocci warnings

2021-08-24 Thread CGEL
From: Jing Yangyang Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Reported-by: Zeal Robot Signed-off-by: Jing Yangyang --- drivers/xen/events/events_base.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-)

[PATCH linux-next] arch/x86/xen/time.c: fix bugon.cocci warnings

2021-08-22 Thread CGEL
From: Jing Yangyang Use BUG_ON instead of a if condition followed by BUG. Generated by: scripts/coccinelle/misc/bugon.cocci Reported-by: Zeal Robot Signed-off-by: Jing Yangyang --- arch/x86/xen/time.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/a