ARM: tegra: dvfs: fix unused pointer value
Deepak Nibade [Thu, 8 Aug 2013 11:04:23 +0000 (16:04 +0530)]
fix Coverity issue
Coverity id : 23772

Bug 1329327

Change-Id: I8e3923a8677a763a6c1bcdcff0e64023e7677707
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/259611
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

arch/arm/mach-tegra/dvfs.c

index ff921d4..981a307 100644 (file)
@@ -1472,10 +1472,11 @@ int __init dvfs_debugfs_init(struct dentry *clk_debugfs_root)
 
        d = debugfs_create_file("vdd_core_override", S_IRUGO | S_IWUSR,
                clk_debugfs_root, NULL, &core_override_fops);
+       if (!d)
+               return -ENOMEM;
 
        d = debugfs_create_file("gpu_dvfs", S_IRUGO | S_IWUSR,
                clk_debugfs_root, NULL, &gpu_dvfs_fops);
-
        if (!d)
                return -ENOMEM;