diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2018-05-17 05:59:16 -0400 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2018-05-17 06:58:24 -0400 |
| commit | 5c63de1eaadae5c7941c283e6d5577d8a588159d (patch) | |
| tree | eb427a96cc100adb271d5ebb19b9298f72195e25 /drivers/dma/qcom | |
| parent | 60cc43fc888428bb2f18f08997432d426a243338 (diff) | |
dmaengine: qcom: bam_dma: fix invalid assignment warning
Building kernel with W=1 throws below invalid assignment warnings.
bam_dma.c:676:44: warning: invalid assignment: +=
bam_dma.c:676:44: left side has type unsigned long
bam_dma.c:676:44: right side has type restricted __le16
bam_dma.c:921:41: warning: invalid assignment: +=
bam_dma.c:921:41: left side has type unsigned long
bam_dma.c:921:41: right side has type restricted __le16
Fix them!.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/qcom')
| -rw-r--r-- | drivers/dma/qcom/bam_dma.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c index d29275b97e84..4f66d613936d 100644 --- a/drivers/dma/qcom/bam_dma.c +++ b/drivers/dma/qcom/bam_dma.c | |||
| @@ -665,7 +665,7 @@ static struct dma_async_tx_descriptor *bam_prep_slave_sg(struct dma_chan *chan, | |||
| 665 | remainder = 0; | 665 | remainder = 0; |
| 666 | } | 666 | } |
| 667 | 667 | ||
| 668 | async_desc->length += desc->size; | 668 | async_desc->length += le16_to_cpu(desc->size); |
| 669 | desc++; | 669 | desc++; |
| 670 | } while (remainder > 0); | 670 | } while (remainder > 0); |
| 671 | } | 671 | } |
| @@ -910,7 +910,8 @@ static enum dma_status bam_tx_status(struct dma_chan *chan, dma_cookie_t cookie, | |||
| 910 | continue; | 910 | continue; |
| 911 | 911 | ||
| 912 | for (i = 0; i < async_desc->num_desc; i++) | 912 | for (i = 0; i < async_desc->num_desc; i++) |
| 913 | residue += async_desc->curr_desc[i].size; | 913 | residue += le16_to_cpu( |
| 914 | async_desc->curr_desc[i].size); | ||
| 914 | } | 915 | } |
| 915 | } | 916 | } |
| 916 | 917 | ||
