Re: [PATCH] video: move from strlcpy with unused retval to strscpy
From: Helge Deller
Date: Mon Aug 22 2022 - 16:02:23 EST
On 8/18/22 23:01, Wolfram Sang wrote:
> Follow the advice of the below link and prefer 'strscpy' in this
> subsystem. Conversion is 1:1 because the return value is not used.
> Generated by a coccinelle script.
>
> Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@xxxxxxxxxxxxxx/
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
applied.
Thanks!
Helge
> drivers/video/console/sticore.c | 2 +-
> drivers/video/fbdev/aty/atyfb_base.c | 2 +-
> drivers/video/fbdev/aty/radeon_base.c | 2 +-
> drivers/video/fbdev/bw2.c | 2 +-
> drivers/video/fbdev/cirrusfb.c | 2 +-
> drivers/video/fbdev/clps711x-fb.c | 2 +-
> drivers/video/fbdev/core/fbcon.c | 2 +-
> drivers/video/fbdev/cyber2000fb.c | 8 ++++----
> drivers/video/fbdev/ffb.c | 2 +-
> drivers/video/fbdev/geode/gx1fb_core.c | 6 +++---
> drivers/video/fbdev/gxt4500.c | 2 +-
> drivers/video/fbdev/i740fb.c | 2 +-
> drivers/video/fbdev/imxfb.c | 2 +-
> drivers/video/fbdev/matrox/matroxfb_base.c | 6 +++---
> drivers/video/fbdev/omap2/omapfb/omapfb-main.c | 2 +-
> drivers/video/fbdev/pxa168fb.c | 2 +-
> drivers/video/fbdev/pxafb.c | 2 +-
> drivers/video/fbdev/s3fb.c | 2 +-
> drivers/video/fbdev/simplefb.c | 2 +-
> drivers/video/fbdev/sis/sis_main.c | 4 ++--
> drivers/video/fbdev/sm501fb.c | 2 +-
> drivers/video/fbdev/sstfb.c | 2 +-
> drivers/video/fbdev/sunxvr1000.c | 2 +-
> drivers/video/fbdev/sunxvr2500.c | 2 +-
> drivers/video/fbdev/sunxvr500.c | 2 +-
> drivers/video/fbdev/tcx.c | 2 +-
> drivers/video/fbdev/tdfxfb.c | 4 ++--
> drivers/video/fbdev/tgafb.c | 2 +-
> drivers/video/fbdev/tridentfb.c | 2 +-
> 29 files changed, 38 insertions(+), 38 deletions(-)