[PATCH linux-next] um: use strscpy() is more robust and safer

2022-09-21 Thread cgel . zte
From: ye xingchen The implementation of strscpy() is more robust and safer. That's now the recommended way to copy NUL terminated strings. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- arch/um/os-Linux/umid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/

[PATCH linux-next] um: Remove the unneeded result variable

2022-09-19 Thread cgel . zte
From: ye xingchen Return the value epoll_ctl() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- arch/um/os-Linux/irq.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/um/os-Linux/irq.c b/arch/um/os