Skip to content

Commit

Permalink
[media] dib9000: return error code on failure
Browse files Browse the repository at this point in the history
The ret = -EIO needs to be before the goto.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
error27 authored and Mauro Carvalho Chehab committed Sep 3, 2011
1 parent 0c61cc3 commit 2f098cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/dib9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2f098cb

Please sign in to comment.