[media] drxd_hard: Add missing error code assignment before test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 10 Aug 2016 05:54:41 +0000 (02:54 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:22:16 +0000 (16:22 -0300)
It is likely that checking the result of the 2nd 'read16' is expected here.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/drxk_hard.c

index b975da0..c595adc 100644 (file)
@@ -6448,7 +6448,7 @@ static int get_strength(struct drxk_state *state, u64 *strength)
                        return status;
 
                /* SCU c.o.c. */
-               read16(state, SCU_RAM_AGC_RF_IACCU_HI_CO__A, &scu_coc);
+               status = read16(state, SCU_RAM_AGC_RF_IACCU_HI_CO__A, &scu_coc);
                if (status < 0)
                        return status;