summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorSalva Peiró <speiro@ai2.upv.es>2014-06-07 18:41:44 +0400
committerJiri Slaby <jslaby@suse.cz>2014-09-17 18:55:01 +0400
commitd99e678657e070df68f8394de67a01805f1a0303 (patch)
tree622e065ba47fbb92167a6f1dc2f5e2c179aa1423 /drivers/media
parentc2c9d04ef4afefa2fa1bd5c9f213bc26987dfe18 (diff)
downloadlinux-d99e678657e070df68f8394de67a01805f1a0303.tar.xz
media: media-device: Remove duplicated memset() in media_enum_entities()
commit f8ca6ac00d2ba24c5557f08f81439cd3432f0802 upstream. After the zeroing the whole struct struct media_entity_desc u_ent, it is no longer necessary to memset(0) its u_ent.name field. Signed-off-by: Salva Peiró <speiro@ai2.upv.es> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/media-device.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index 703560fa5e73..88c1606fd555 100644
--- 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;