projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad50b1
)
hostfs: Remove open coded strcpy()
author
Richard Weinberger
<richard@nod.at>
Tue, 3 Mar 2015 22:42:25 +0000
(23:42 +0100)
committer
Richard Weinberger
<richard@nod.at>
Thu, 26 Mar 2015 22:27:50 +0000
(23:27 +0100)
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 3082a7e715dd9bafc5cf69c0c3dda1005a3f2e5b..7260f162db41ca445192c1130b46f40cd242edb3 100644
(file)
--- a/
fs/hostfs/hostfs_kern.c
+++ b/
fs/hostfs/hostfs_kern.c
@@
-105,11
+105,10
@@
static char *__dentry_name(struct dentry *dentry, char *name)
__putname(name);
return NULL;
}
- if (p > name + len) {
- char *s = name + len;
- while ((*s++ = *p++) != '\0')
- ;
- }
+
+ if (p > name + len)
+ strcpy(name + len, p);
+
return name;
}