Skip to content

Commit 50858ef

Browse files
committed
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>
1 parent f7769f9 commit 50858ef

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎fs/befs/linuxvfs.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ befs_readdir(struct file *file, struct dir_context *ctx)
211211
befs_off_t value;
212212
int result;
213213
size_t keysize;
214-
unsigned char d_type;
215214
char keybuf[BEFS_NAME_LEN + 1];
216215

217216
befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld",
@@ -236,8 +235,6 @@ befs_readdir(struct file *file, struct dir_context *ctx)
236235
return 0;
237236
}
238237

239-
d_type = DT_UNKNOWN;
240-
241238
/* Convert to NLS */
242239
if (BEFS_SB(sb)->nls) {
243240
char *nlsname;
@@ -249,14 +246,14 @@ befs_readdir(struct file *file, struct dir_context *ctx)
249246
return result;
250247
}
251248
if (!dir_emit(ctx, nlsname, nlsnamelen,
252-
(ino_t) value, d_type)) {
249+
(ino_t) value, DT_UNKNOWN)) {
253250
kfree(nlsname);
254251
return 0;
255252
}
256253
kfree(nlsname);
257254
} else {
258255
if (!dir_emit(ctx, keybuf, keysize,
259-
(ino_t) value, d_type))
256+
(ino_t) value, DT_UNKNOWN))
260257
return 0;
261258
}
262259
ctx->pos++;

0 commit comments

Comments
 (0)