Commit 18e0511d authored by Federico Vaga's avatar Federico Vaga

sw:drv:spi: minor style changes to pending function

Signed-off-by: Federico Vaga's avatarFederico Vaga <>
parent 7839a6aa
......@@ -531,9 +531,9 @@ static int spi_ocores_sw_xfer_next_start(struct spi_ocores *sp)
* @sp: SPI OCORE controller
* Return: True is there are still pending data in the current transfer
static bool spi_ocores_sw_xfer_pending(struct spi_ocores *sp)
static bool spi_ocores_sw_xfer_has_pending(struct spi_ocores *sp)
return sp->cur_len;
return sp->cur_len > 0;
......@@ -570,7 +570,7 @@ static int spi_ocores_process(struct spi_ocores *sp)
return -ENODATA;
if (spi_ocores_sw_xfer_pending(sp)) {
if (spi_ocores_sw_xfer_has_pending(sp)) {
} else {
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