aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ubifs/commit.c
diff options
context:
space:
mode:
authorRandy Dunlap <[email protected]>2020-04-05 21:22:56 +0000
committerRichard Weinberger <[email protected]>2020-12-13 20:51:54 +0000
commit8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09 (patch)
tree8fd398a3711406abd8535d0d54b357248469d982 /fs/ubifs/commit.c
parentubifs: Delete duplicated words + other fixes (diff)
downloadkernel-8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09.tar.gz
kernel-8fdaaf4cf3cea64aed8265a62c4ea7158ac0aa09.zip
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 <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: [email protected] Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions