xfs
[Top] [All Lists]

[PATCH 09/14] xfsprogs: annotate a case fallthrough in libxfs_ialloc

To: xfs@xxxxxxxxxxx
Subject: [PATCH 09/14] xfsprogs: annotate a case fallthrough in libxfs_ialloc
From: Eric Sandeen <sandeen@xxxxxxxxxx>
Date: Tue, 8 Apr 2014 18:24:59 -0500
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx>
References: <1396999504-13769-1-git-send-email-sandeen@xxxxxxxxxx>
This is all working as intended, but add a comment to
make it more obvious to readers and static code
checkers.

Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
---
 libxfs/util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libxfs/util.c b/libxfs/util.c
index f1aa4c6..1e48079 100644
--- a/libxfs/util.c
+++ b/libxfs/util.c
@@ -265,6 +265,7 @@ libxfs_ialloc(
        case S_IFSOCK:
                /* doesn't make sense to set an rdev for these */
                rdev = 0;
+               /* FALLTHROUGH */
        case S_IFCHR:
        case S_IFBLK:
                ip->i_d.di_format = XFS_DINODE_FMT_DEV;
-- 
1.7.1

<Prev in Thread] Current Thread [Next in Thread>