]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
befs: remove constant variable
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Fri, 1 Jul 2016 00:07:31 +0000 (01:07 +0100)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 8 Oct 2016 09:01:15 +0000 (10:01 +0100)
Use macro directly instead of via assigning it to an unchanging variable.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Acked-by: Salah Triki <salah.triki@gmail.com>
fs/befs/linuxvfs.c

index 62889eb4a97e6186980b8c8ecb83e83ccbf2c004..516a958ba50e4cb422dfdee23d3c6632fefe8e44 100644 (file)
@@ -211,7 +211,6 @@ befs_readdir(struct file *file, struct dir_context *ctx)
        befs_off_t value;
        int result;
        size_t keysize;
-       unsigned char d_type;
        char keybuf[BEFS_NAME_LEN + 1];
 
        befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld",
@@ -236,8 +235,6 @@ more:
                return 0;
        }
 
-       d_type = DT_UNKNOWN;
-
        /* Convert to NLS */
        if (BEFS_SB(sb)->nls) {
                char *nlsname;
@@ -249,14 +246,14 @@ more:
                        return result;
                }
                if (!dir_emit(ctx, nlsname, nlsnamelen,
-                                (ino_t) value, d_type)) {
+                                (ino_t) value, DT_UNKNOWN)) {
                        kfree(nlsname);
                        return 0;
                }
                kfree(nlsname);
        } else {
                if (!dir_emit(ctx, keybuf, keysize,
-                                (ino_t) value, d_type))
+                                (ino_t) value, DT_UNKNOWN))
                        return 0;
        }
        ctx->pos++;