Commit ccc40ed7 authored by Leonid Kegulskiy's avatar Leonid Kegulskiy Committed by Mauro Carvalho Chehab

[media] hdpvr: Removed unnecessary get_video_info() call from hdpvr_device_init()

Signed-off-by: default avatarLeonid Kegulskiy <leo@lumanate.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 849325e3
...@@ -220,7 +220,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev) ...@@ -220,7 +220,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev)
{ {
int ret; int ret;
u8 *buf; u8 *buf;
struct hdpvr_video_info *vidinf;
if (device_authorization(dev)) if (device_authorization(dev))
return -EACCES; return -EACCES;
...@@ -242,13 +241,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev) ...@@ -242,13 +241,6 @@ static int hdpvr_device_init(struct hdpvr_device *dev)
"control request returned %d\n", ret); "control request returned %d\n", ret);
mutex_unlock(&dev->usbc_mutex); mutex_unlock(&dev->usbc_mutex);
vidinf = get_video_info(dev);
if (!vidinf)
v4l2_dbg(MSG_INFO, hdpvr_debug, &dev->v4l2_dev,
"no valid video signal or device init failed\n");
else
kfree(vidinf);
/* enable fan and bling leds */ /* enable fan and bling leds */
mutex_lock(&dev->usbc_mutex); mutex_lock(&dev->usbc_mutex);
buf[0] = 0x1; buf[0] = 0x1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment