summaryrefslogtreecommitdiff
path: root/fs/exfat/inode.c
diff options
context:
space:
mode:
authorTetsuhiro Kohada <kohada.t2@gmail.com>2020-09-11 13:45:19 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2020-10-22 08:29:11 +0900
commita7a241686c8f8142afafbd5fa5b9b9b6ea1aa173 (patch)
treed3031f7492fadb245a40897d6dd9fdbdf2cdf2e4 /fs/exfat/inode.c
parent6c958a09555515684947d94bfcfa8e8a414f0572 (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/inode.c')
-rw-r--r--fs/exfat/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c
index a6de17cac3df..109f9b4c40d3 100644
--- a/fs/exfat/inode.c
+++ b/fs/exfat/inode.c
@@ -556,7 +556,7 @@ static int exfat_fill_inode(struct inode *inode, struct exfat_dir_entry *info)
struct exfat_inode_info *ei = EXFAT_I(inode);
loff_t size = info->size;
- memcpy(&ei->dir, &info->dir, sizeof(struct exfat_chain));
+ ei->dir = info->dir;
ei->entry = info->entry;
ei->attr = info->attr;
ei->start_clu = info->start_clu;