Re: [PATCH V3] [media] mantis: fix error handling

2015-03-23 Thread Dan Carpenter
On Mon, Mar 23, 2015 at 05:25:53PM +0100, Silvan Jegen wrote: > 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 th

[PATCH V3] [media] mantis: fix error handling

2015-03-23 Thread Silvan Jegen
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. Signed-off-by: Silv