Commit fae9f53e authored by Federico Vaga's avatar Federico Vaga

sw:drv:spi: set message status at the end

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 7106b236
......@@ -479,8 +479,10 @@ static int spi_ocores_sw_xfer_next_init(struct spi_ocores *sp)
if (!sp->cur_xfer)
return -ENODATA;
} else {
if (list_is_last(&sp->cur_xfer->transfer_list, head))
if (list_is_last(&sp->cur_xfer->transfer_list, head)) {
sp->master->cur_msg->status = 0;
return -ENODATA;
}
sp->cur_xfer = list_next_entry(sp->cur_xfer, transfer_list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment