diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2020-04-06 00:22:56 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2020-12-13 23:51:54 +0300 |
commit | 8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09 (patch) | |
tree | 8fd398a3711406abd8535d0d54b357248469d982 /fs/ubifs/dir.c | |
parent | b8f1da98a219ab8c371fae5c3efb4b90b8594f3b (diff) | |
download | linux-8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09.tar.xz |
jffs2: Fix if/else empty body warnings
When debug (print) macros are not enabled, change them to use the
no_printk() macro instead of <nothing>. This fixes gcc warnings when
-Wextra is used:
../fs/jffs2/nodelist.c:255:37: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
../fs/jffs2/nodelist.c:278:38: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
../fs/jffs2/nodelist.c:558:52: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
../fs/jffs2/xattr.c:1247:58: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
../fs/jffs2/xattr.c:1281:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Builds without warnings on all 3 levels of CONFIG_JFFS2_FS_DEBUG.
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/dir.c')
0 files changed, 0 insertions, 0 deletions