summaryrefslogtreecommitdiffstats
path: root/fs/befs/linuxvfs.c
diff options
context:
space:
mode:
authorLuis de Bethencourt <luisbg@osg.samsung.com>2016-07-01 01:07:31 +0100
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 10:01:15 +0100
commit50858ef96deeeeeb36b2113d49007f41d0410763 (patch)
treeccb45d402de91d2afe76f75c347c79646d791b62 /fs/befs/linuxvfs.c
parentf7769f9cf95fa1a63eea81f13126f8fe7f708dc1 (diff)
downloadlinux-50858ef96deeeeeb36b2113d49007f41d0410763.tar.bz2
befs: remove constant variable
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>
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r--fs/befs/linuxvfs.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 62889eb4a97e..516a958ba50e 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -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++;