iommu: rk-iommu: fix build warning when enable CONFIG_CC_OPTIMIZE_FOR_SIZE
authorSimon <xxm@rock-chips.com>
Mon, 9 May 2016 07:25:28 +0000 (15:25 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 9 May 2016 08:32:37 +0000 (16:32 +0800)
Change-Id: Iff20759a625df9f6c6138eaa8d963d67a483c01d
Signed-off-by: Simon <xxm@rock-chips.com>
drivers/iommu/rk-iommu.c

index b3bb9f38b313512942e0ba2f24343c37376912ff..0520d2c634058e0b38205ab7305e83f55abd6e7f 100644 (file)
@@ -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);