diff options
author | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-06-30 20:07:31 -0400 |
---|---|---|
committer | Luis de Bethencourt <luisbg@osg.samsung.com> | 2016-10-08 05:01:15 -0400 |
commit | 50858ef96deeeeeb36b2113d49007f41d0410763 (patch) | |
tree | ccb45d402de91d2afe76f75c347c79646d791b62 | |
parent | f7769f9cf95fa1a63eea81f13126f8fe7f708dc1 (diff) |
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>
-rw-r--r-- | fs/befs/linuxvfs.c | 7 |
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) | |||
211 | befs_off_t value; | 211 | befs_off_t value; |
212 | int result; | 212 | int result; |
213 | size_t keysize; | 213 | size_t keysize; |
214 | unsigned char d_type; | ||
215 | char keybuf[BEFS_NAME_LEN + 1]; | 214 | char keybuf[BEFS_NAME_LEN + 1]; |
216 | 215 | ||
217 | befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld", | 216 | befs_debug(sb, "---> %s name %pD, inode %ld, ctx->pos %lld", |
@@ -236,8 +235,6 @@ more: | |||
236 | return 0; | 235 | return 0; |
237 | } | 236 | } |
238 | 237 | ||
239 | d_type = DT_UNKNOWN; | ||
240 | |||
241 | /* Convert to NLS */ | 238 | /* Convert to NLS */ |
242 | if (BEFS_SB(sb)->nls) { | 239 | if (BEFS_SB(sb)->nls) { |
243 | char *nlsname; | 240 | char *nlsname; |
@@ -249,14 +246,14 @@ more: | |||
249 | return result; | 246 | return result; |
250 | } | 247 | } |
251 | if (!dir_emit(ctx, nlsname, nlsnamelen, | 248 | if (!dir_emit(ctx, nlsname, nlsnamelen, |
252 | (ino_t) value, d_type)) { | 249 | (ino_t) value, DT_UNKNOWN)) { |
253 | kfree(nlsname); | 250 | kfree(nlsname); |
254 | return 0; | 251 | return 0; |
255 | } | 252 | } |
256 | kfree(nlsname); | 253 | kfree(nlsname); |
257 | } else { | 254 | } else { |
258 | if (!dir_emit(ctx, keybuf, keysize, | 255 | if (!dir_emit(ctx, keybuf, keysize, |
259 | (ino_t) value, d_type)) | 256 | (ino_t) value, DT_UNKNOWN)) |
260 | return 0; | 257 | return 0; |
261 | } | 258 | } |
262 | ctx->pos++; | 259 | ctx->pos++; |