ARM: tegra: clock: fix Coverity issue of unused pointer value
Deepak Nibade [Wed, 8 May 2013 13:16:56 +0000 (18:16 +0530)]
Coverity id : 23064

Bug 1046331

Change-Id: I8fc67440e1cf0f41e0d9d7db2b896682b1081efb
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/226699
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>

arch/arm/mach-tegra/tegra_emc.c

index 6b751bd..ec2d2ce 100644 (file)
@@ -162,6 +162,9 @@ int __init tegra_emc_iso_usage_debugfs_init(struct dentry *emc_debugfs_root)
 
        d = debugfs_create_u8("emc_iso_share", S_IRUGO, emc_debugfs_root,
                              &emc_iso_share);
+       if (!d)
+               return -ENOMEM;
+
        d = debugfs_create_u32("emc_iso_allocation", S_IRUGO, emc_debugfs_root,
                              (u32 *)&emc_iso_allocation);
        if (!d)