]> git.hungrycats.org Git - linux/commit
btrfs: remove unnecessary pointer increment in btrfs_state_to_string()
authorFilipe Manana <fdmanana@suse.com>
Wed, 30 Sep 2026 11:03:11 +0000 (12:03 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 12 Oct 2026 17:16:23 +0000 (19:16 +0200)
commit719aee83960b3e20099247c2d0bb47b969487b4c
treedb11af9d26e7bb5322a050427f5ddc4e36fdcb67
parent38361baddd61cdf343609497b17d58507e8f9782
btrfs: remove unnecessary pointer increment in btrfs_state_to_string()

There's no point in incrementing the local pointer after we set the NUL
terminator, as we don't use the pointer anymore after that.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/messages.c