[media] mxl111sf: missing return values validation
authorInsu Yun <wuninsu@gmail.com>
Thu, 15 Oct 2015 20:22:45 +0000 (17:22 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 10:15:02 +0000 (08:15 -0200)
Return values of mxl111sf_enable_usb_output and mxl1x1sf_top_master_ctrl
are not validated.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Reviewed-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/dvb-usb-v2/mxl111sf.c

index bec12b0e076b37e6a6d429550a63861f011cd33a..b71b2e60d0803663f88fe1a789411f10c3649c63 100644 (file)
@@ -288,9 +288,9 @@ static int mxl111sf_adap_fe_init(struct dvb_frontend *fe)
        err = mxl1x1sf_set_device_mode(state, adap_state->device_mode);
 
        mxl_fail(err);
-       mxl111sf_enable_usb_output(state);
+       err = mxl111sf_enable_usb_output(state);
        mxl_fail(err);
-       mxl1x1sf_top_master_ctrl(state, 1);
+       err = mxl1x1sf_top_master_ctrl(state, 1);
        mxl_fail(err);
 
        if ((MXL111SF_GPIO_MOD_DVBT != adap_state->gpio_mode) &&