]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: omap_hsmmc: remove a duplicative test
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 30 Jan 2014 12:15:18 +0000 (15:15 +0300)
committerChris Ball <chris@printf.net>
Tue, 4 Mar 2014 16:44:13 +0000 (11:44 -0500)
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>
drivers/mmc/host/omap_hsmmc.c

index dbd32ad3b749337a196c98915694b0c013685186..4ff906cfd23c3d02c2bc6c9220664f705f3cfe8c 100644 (file)
@@ -1236,8 +1236,7 @@ static int omap_hsmmc_pre_dma_transfer(struct omap_hsmmc_host *host,
        }
 
        /* Check if next job is already prepared */
-       if (next ||
-           (!next && data->host_cookie != host->next_data.cookie)) {
+       if (next || data->host_cookie != host->next_data.cookie) {
                dma_len = dma_map_sg(chan->device->dev, data->sg, data->sg_len,
                                     omap_hsmmc_get_dma_dir(host, data));