diff options
author | Salva Peiró <speiro@ai2.upv.es> | 2014-06-07 11:41:44 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-17 09:21:49 -0700 |
commit | 8d0653d418affb792181fb66b9c8484c540fcb51 (patch) | |
tree | 61890f3a865dbb8b373c779124210496f0c168c4 /drivers/media | |
parent | e38eb1d85058184924ee041008b40eb131c51029 (diff) | |
download | linux-stable-8d0653d418affb792181fb66b9c8484c540fcb51.tar.gz linux-stable-8d0653d418affb792181fb66b9c8484c540fcb51.tar.bz2 linux-stable-8d0653d418affb792181fb66b9c8484c540fcb51.zip |
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/media-device.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 88b97c9e64ac..73a432934bd8 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; |