summaryrefslogtreecommitdiff
path: root/src/mediactl.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-05-30 17:03:04 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2014-05-30 17:12:09 +0200
commit7a561627189f6062d99bcb77a0c52dd55f25455e (patch)
treef7bdbbb16771c7f51c572b822c194e9e6c708c59 /src/mediactl.c
parent8f82d59d2582be3a687a2b44187401f8a3e74a5e (diff)
Remove unused variables
The ret variable is declared but unused in two functions. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/mediactl.c')
-rw-r--r--src/mediactl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mediactl.c b/src/mediactl.c
index 5daecb6..4ac2e13 100644
--- a/src/mediactl.c
+++ b/src/mediactl.c
@@ -640,7 +640,6 @@ void media_debug_set_handler(struct media_device *media,
static struct media_device *__media_device_new(void)
{
struct media_device *media;
- int ret;
media = calloc(1, sizeof(*media));
if (media == NULL)
@@ -657,7 +656,6 @@ static struct media_device *__media_device_new(void)
struct media_device *media_device_new(const char *devnode)
{
struct media_device *media;
- int ret;
media = __media_device_new();
if (media == NULL)