]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
xfs_scrub: remove dead code
authorDarrick J. Wong <djwong@kernel.org>
Thu, 7 May 2026 22:11:58 +0000 (15:11 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 13 May 2026 10:30:43 +0000 (12:30 +0200)
Nothing uses @mask anymore, so remove it.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
scrub/unicrash.c

index 87c0a8f0542fbb0fb4eb2d11e484bc55b5030404..1a845d3e84572a0253857baea11c89b21722f793 100644 (file)
@@ -499,7 +499,6 @@ name_entry_examine(
 {
        UCharIterator           uiter;
        UChar32                 uchr;
-       uint8_t                 mask = 0;
        unsigned int            ret = 0;
        /* Don't allow the first codepoint to be a variation */
        UBool                   was_variation = true;
@@ -524,12 +523,6 @@ name_entry_examine(
                        ret |= UNICRASH_CONTROL_CHAR;
 
                switch (u_charDirection(uchr)) {
-               case U_LEFT_TO_RIGHT:
-                       mask |= 0x01;
-                       break;
-               case U_RIGHT_TO_LEFT:
-                       mask |= 0x02;
-                       break;
                case U_RIGHT_TO_LEFT_OVERRIDE:
                        ret |= UNICRASH_BIDI_OVERRIDE;
                        break;