lkml.org 
[lkml]   [2008]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 4/5] MMC: fix spares errors of sdhci.c
From
Date
Hi Tomas,

> if (host->flags & SDHCI_REQ_USE_DMA) {
> - int count;
> + int dma_cnt;
>
> - count = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
> + dma_cnt = dma_map_sg(mmc_dev(host->mmc), data->sg, data->sg_len,
> (data->flags & MMC_DATA_READ) ?
> DMA_FROM_DEVICE : DMA_TO_DEVICE);
> - WARN_ON(count != 1);
> + WARN_ON(dma_cnt != 1);

can you include what sparse error this is trying to fix. From the patch
itself, I can't see it.

Regards

Marcel




\
 
 \ /
  Last update: 2008-07-01 03:49    [W:0.304 / U:0.208 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site