Skip to content

Commit

Permalink
V4L/DVB: tm6000: fix: avoid unregister the driver after success
Browse files Browse the repository at this point in the history
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: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Stefan Ringel authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 04574a6 commit 80af6bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ static int tm6000_init_dev(struct tm6000_core *dev)
}
#endif
}
return 0;

err2:
v4l2_device_unregister(&dev->v4l2_dev);
Expand Down

0 comments on commit 80af6bb

Please sign in to comment.