]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] mantis: fix error handling
authorSilvan Jegen <s.jegen@gmail.com>
Mon, 23 Mar 2015 16:25:53 +0000 (13:25 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 12 May 2015 11:12:18 +0000 (08:12 -0300)
commitb2624ff4bf46869df66148b2e1e675981565742e
tree4c7a1fb37feb13fb5e9a708e98ace9f9d9765291
parent44767fc418b6f69f629f70033eb7a08de396224e
[media] mantis: fix error handling

Remove dead code, make goto label names more expressive and add a label
in order to call mantis_dvb_exit if mantis_uart_init fails.

Also make sure that mantis_pci_exit is called if we fail the
mantis_stream_control call and that we call mantis_i2c_exit if
mantis_get_mac fails.

[mchehab@osg.samsung.com: fix merge conflict]
Signed-off-by: Silvan Jegen <s.jegen@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/mantis/mantis_cards.c