Commit 99eb9d8d authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Chris Ball

mmc: sh_mmcif: (cosmetic) simplify boolean return blocks

Use "return condition" instead of "if (condition) return true; return false"
in functions, returning bool.
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent eae30983
...@@ -542,10 +542,7 @@ static bool sh_mmcif_next_block(struct sh_mmcif_host *host, u32 *p) ...@@ -542,10 +542,7 @@ static bool sh_mmcif_next_block(struct sh_mmcif_host *host, u32 *p)
host->pio_ptr = p; host->pio_ptr = p;
} }
if (host->sg_idx == data->sg_len) return host->sg_idx != data->sg_len;
return false;
return true;
} }
static void sh_mmcif_single_read(struct sh_mmcif_host *host, static void sh_mmcif_single_read(struct sh_mmcif_host *host,
...@@ -1071,9 +1068,7 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host) ...@@ -1071,9 +1068,7 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host)
if (!host->dma_active) { if (!host->dma_active) {
data->error = sh_mmcif_data_trans(host, host->mrq, cmd->opcode); data->error = sh_mmcif_data_trans(host, host->mrq, cmd->opcode);
if (!data->error) return !data->error;
return true;
return false;
} }
/* Running in the IRQ thread, can sleep */ /* Running in the IRQ thread, can sleep */
......
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