diff options
author | Thorsten Blum <thorsten.blum@toblux.com> | 2024-04-02 12:17:16 +0200 |
---|---|---|
committer | Damien Le Moal <dlemoal@kernel.org> | 2024-04-10 00:23:47 +0200 |
commit | 60b703c71fa80de0c2e14af66e57e234019b7da2 (patch) | |
tree | 3164a563880df03334288e6419a048f56870a4b2 /fs | |
parent | Merge tag 'drm-fixes-2024-04-09' of https://gitlab.freedesktop.org/drm/kernel (diff) | |
download | linux-60b703c71fa80de0c2e14af66e57e234019b7da2.tar.xz linux-60b703c71fa80de0c2e14af66e57e234019b7da2.zip |
zonefs: Use str_plural() to fix Coccinelle warning
Fixes the following Coccinelle/coccicheck warning reported by
string_choices.cocci:
opportunity for str_plural(zgroup->g_nr_zones)
Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/zonefs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index c6a124e8d565..964fa7f24003 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1048,7 +1048,7 @@ static int zonefs_init_zgroup(struct super_block *sb, zonefs_info(sb, "Zone group \"%s\" has %u file%s\n", zonefs_zgroup_name(ztype), zgroup->g_nr_zones, - zgroup->g_nr_zones > 1 ? "s" : ""); + str_plural(zgroup->g_nr_zones)); return 0; } |