Commit 80af6bb7 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab

V4L/DVB: tm6000: fix: avoid unregister the driver after success

After successfully running tm6000_init_dev, due to a lack of a return(),
the driver runs the error code, unregistering the device.
Signed-off-by: default avatarStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 04574a68
...@@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev) ...@@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev)
} }
#endif #endif
} }
return 0;
err2: err2:
v4l2_device_unregister(&dev->v4l2_dev); v4l2_device_unregister(&dev->v4l2_dev);
......
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