Re: [Cluster-devel] [PATCH] gfs2: move from strlcpy with unused retval to strscpy

2022-08-23 Thread Andrew Price
On 18/08/2022 22: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=v6a6g1ouzcprm...@mail

[Cluster-devel] [PATCH linux-next] gfs2: Remove the unneeded result variable

2022-08-23 Thread cgel . zte
From: ye xingchen Return the value from gfs2_iomap_get() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot Signed-off-by: ye xingchen --- fs/gfs2/bmap.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/gfs2/bmap.c b/fs/gfs2/bmap.c