Skip to contentSkip to conversation

dib9000: return error code on failure

PATCH New Dan Carpenter 1 participant 1 message Aug 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dib9000: return error code on failure

The ret = -EIO needs to be before the goto.

drivers/media/dvb/frontends/dib9000.c +1 -1
index a085588..01e6b0c 100644
@@ -1167,8 +1167,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,