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

From: David Sterba
Date: Fri Sep 02 2022 - 08:50:31 EST


On Fri, Sep 02, 2022 at 07:48:10AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: zhang songyi <zhang.songyi@xxxxxxxxxx>
>
> Return the sysfs_emit() directly instead of storing it in another
> redundant variable.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: zhang songyi <zhang.songyi@xxxxxxxxxx>

There's another patch doing a similar cleanup in btrfs_load_inode_props,
can you please resend so it's all done in one patch? I did not want to
apply a single fix but now that there are a few more instances of the
pattern it makes slightly more sense to apply it. Thanks.

https://lore.kernel.org/linux-btrfs/20220830083914.276926-1-ye.xingchen@xxxxxxxxxx/