aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-08-06 04:01:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-03 12:08:20 -0400
commit2f098cb1c8b226a99595512e1029c8d1680f69cd (patch)
tree17700a3571403ae16c5f9d1458ae371efa6ce758
parent0c61cc3ba4c9b74cfdd6a1ee07492199ffdd9818 (diff)
[media] dib9000: return error code on failure
The ret = -EIO needs to be before the goto. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/dvb/frontends/dib9000.c2
1 files changed, 1 insertions, 1 deletions
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
1180 1180
1181 DibAcquireLock(&state->platform.risc.mem_mbx_lock); 1181 DibAcquireLock(&state->platform.risc.mem_mbx_lock);
1182 if (dib9000_fw_memmbx_sync(state, FE_SYNC_CHANNEL) < 0) { 1182 if (dib9000_fw_memmbx_sync(state, FE_SYNC_CHANNEL) < 0) {
1183 goto error;
1184 ret = -EIO; 1183 ret = -EIO;
1184 goto error;
1185 } 1185 }
1186 1186
1187 dib9000_risc_mem_read(state, FE_MM_R_CHANNEL_UNION, 1187 dib9000_risc_mem_read(state, FE_MM_R_CHANNEL_UNION,