From: Dan Carpenter Date: Sat, 6 Aug 2011 08:01:51 +0000 (-0300) Subject: [media] dib9000: return error code on failure X-Git-Tag: next-20110927~67^2~4^2~161 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2f098cb1c8b226a99595512e1029c8d1680f69cd;p=karo-tx-linux.git [media] dib9000: return error code on failure The ret = -EIO needs to be before the goto. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/dib9000.c b/drivers/media/dvb/frontends/dib9000.c index b931074a9521..e276b119039e 100644 --- a/drivers/media/dvb/frontends/dib9000.c +++ b/drivers/media/dvb/frontends/dib9000.c @@ -1180,8 +1180,8 @@ static int dib9000_fw_get_channel(struct dvb_frontend *fe, struct dvb_frontend_p DibAcquireLock(&state->platform.risc.mem_mbx_lock); if (dib9000_fw_memmbx_sync(state, FE_SYNC_CHANNEL) < 0) { - goto error; ret = -EIO; + goto error; } dib9000_risc_mem_read(state, FE_MM_R_CHANNEL_UNION,