ARM: tegra: Fix powergate_debugfs_init return value
authorBenoit Goby <benoit@android.com>
Mon, 10 Jan 2011 22:58:00 +0000 (14:58 -0800)
committerBenoit Goby <benoit@android.com>
Mon, 10 Jan 2011 23:16:51 +0000 (15:16 -0800)
Change-Id: Iff865e0f74e1667aa6e998a63d33d3b4cd09694c
Signed-off-by: Benoit Goby <benoit@android.com>
arch/arm/mach-tegra/powergate.c

index 3d75e1e2d4a1464d2e56c7aa12444ad996e483b1..aad47f45831e10c3363865845ef6f076d80a7a79 100644 (file)
@@ -220,14 +220,13 @@ static const struct file_operations powergate_fops = {
 static int __init powergate_debugfs_init(void)
 {
        struct dentry *d;
-       int err = -ENOMEM;
 
        d = debugfs_create_file("powergate", S_IRUGO, NULL, NULL,
                &powergate_fops);
        if (!d)
                return -ENOMEM;
 
-       return err;
+       return 0;
 }
 
 late_initcall(powergate_debugfs_init);