From: Simon Date: Mon, 9 May 2016 07:25:28 +0000 (+0800) Subject: iommu: rk-iommu: fix build warning when enable CONFIG_CC_OPTIMIZE_FOR_SIZE X-Git-Tag: firefly_0821_release~2681 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ad8d04570c9f559706cb2ccc3eeb796bd0b7c5d8;p=firefly-linux-kernel-4.4.55.git iommu: rk-iommu: fix build warning when enable CONFIG_CC_OPTIMIZE_FOR_SIZE Change-Id: Iff20759a625df9f6c6138eaa8d963d67a483c01d Signed-off-by: Simon --- diff --git a/drivers/iommu/rk-iommu.c b/drivers/iommu/rk-iommu.c index b3bb9f38b313..0520d2c63405 100644 --- a/drivers/iommu/rk-iommu.c +++ b/drivers/iommu/rk-iommu.c @@ -766,7 +766,7 @@ int rockchip_iommu_tlb_invalidate_global(struct device *dev) { unsigned long flags; struct iommu_drvdata *data = dev_get_drvdata(dev->archdata.iommu); - int ret; + int ret = 0; spin_lock_irqsave(&data->data_lock, flags);