diff options
author | Tetsuhiro Kohada <kohada.t2@gmail.com> | 2020-09-11 13:45:19 +0900 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2020-10-22 08:29:11 +0900 |
commit | a7a241686c8f8142afafbd5fa5b9b9b6ea1aa173 (patch) | |
tree | d3031f7492fadb245a40897d6dd9fdbdf2cdf2e4 /fs/exfat/dir.c | |
parent | 6c958a09555515684947d94bfcfa8e8a414f0572 (diff) |
exfat: replace memcpy with structure assignment
Use structure assignment instead of memcpy.
Signed-off-by: Tetsuhiro Kohada <kohada.t2@gmail.com>
Acked-by: Sungjong Seo <sj1557.seo@samsung.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Diffstat (limited to 'fs/exfat/dir.c')
-rw-r--r-- | fs/exfat/dir.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/exfat/dir.c b/fs/exfat/dir.c index a9b13ae3f325..5fa751937932 100644 --- a/fs/exfat/dir.c +++ b/fs/exfat/dir.c @@ -978,11 +978,8 @@ rewind: if (ei->hint_femp.eidx == EXFAT_HINT_NONE || candi_empty.eidx <= - ei->hint_femp.eidx) { - memcpy(&ei->hint_femp, - &candi_empty, - sizeof(candi_empty)); - } + ei->hint_femp.eidx) + ei->hint_femp = candi_empty; } brelse(bh); |