[PATCH 1/1 linux-next] ARM: edma: remove unnecessary sizeof(s8)
From: Fabian Frederick
Date: Fri Nov 14 2014 - 15:34:50 EST
sizeof(s8) is always 1
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
arch/arm/common/edma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c
index 72041f0..d6659fd 100644
--- a/arch/arm/common/edma.c
+++ b/arch/arm/common/edma.c
@@ -1486,8 +1486,7 @@ static int edma_setup_from_hw(struct device *dev, struct edma_soc_info *pdata,
* priority. So Q0 is the highest priority queue and the last queue has
* the lowest priority.
*/
- queue_priority_map = devm_kzalloc(dev,
- (edma_cc->num_tc + 1) * sizeof(s8),
+ queue_priority_map = devm_kzalloc(dev, edma_cc->num_tc + 1,
GFP_KERNEL);
if (!queue_priority_map)
return -ENOMEM;
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/