aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-01-30 07:15:18 -0500
committerChris Ball <chris@printf.net>2014-03-04 11:44:13 -0500
commitb38313d627e29d7dfc4aed242fc007806a85d3f0 (patch)
tree04d65ef271374d5306697ccdda94f075d2d75ad7
parent370aede6a18a41e01f2668108d847b598443fbc0 (diff)
mmc: omap_hsmmc: remove a duplicative test
Static checkers complain that testing for both "next" and "!next" is duplicative. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Balaji T K <balajitk@ti.com> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--drivers/mmc/host/omap_hsmmc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index dbd32ad3b749..4ff906cfd23c 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1236,8 +1236,7 @@ static int omap_hsmmc_pre_dma_transfer(struct omap_hsmmc_host *host,
1236 } 1236 }
1237 1237
1238 /* Check if next job is already prepared */ 1238 /* Check if next job is already prepared */
1239 if (next || 1239 if (next || data->host_cookie != host->next_data.cookie) {
1240 (!next && data->host_cookie != host->next_data.cookie)) {
1241 dma_len = dma_map_sg(chan->device->dev, data->sg, data->sg_len, 1240 dma_len = dma_map_sg(chan->device->dev, data->sg, data->sg_len,
1242 omap_hsmmc_get_dma_dir(host, data)); 1241 omap_hsmmc_get_dma_dir(host, data));
1243 1242