projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: media-device: Remove duplicated memset() in media_enum_entities()
[profile/ivi/kernel-x86-ivi.git]
/
drivers
/
media
/
media-device.c
diff --git
a/drivers/media/media-device.c
b/drivers/media/media-device.c
index
703560f
..
88c1606
100644
(file)
--- a/
drivers/media/media-device.c
+++ b/
drivers/media/media-device.c
@@
-106,8
+106,6
@@
static long media_device_enum_entities(struct media_device *mdev,
if (ent->name) {
strncpy(u_ent.name, ent->name, sizeof(u_ent.name));
u_ent.name[sizeof(u_ent.name) - 1] = '\0';
- } else {
- memset(u_ent.name, 0, sizeof(u_ent.name));
}
u_ent.type = ent->type;
u_ent.revision = ent->revision;