s390/hypfs: Cocci spatch "ptr_ret.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Sat, 1 Jun 2013 09:59:51 +0000 (11:59 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Jun 2013 19:10:21 +0000 (21:10 +0200)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/hypfs/hypfs_diag.c

index 7fd3690b676050eab20af1caf6a2c50b6a73aba0..138893e5f736f4e186a7cb04285fc55966950bfe 100644 (file)
@@ -651,9 +651,7 @@ static int hypfs_create_cpu_files(struct super_block *sb,
        }
        diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer);
        rc = hypfs_create_str(sb, cpu_dir, "type", buffer);
-       if (IS_ERR(rc))
-               return PTR_ERR(rc);
-       return 0;
+       return PTR_RET(rc);
 }
 
 static void *hypfs_create_lpar_files(struct super_block *sb,
@@ -702,9 +700,7 @@ static int hypfs_create_phys_cpu_files(struct super_block *sb,
                return PTR_ERR(rc);
        diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer);
        rc = hypfs_create_str(sb, cpu_dir, "type", buffer);
-       if (IS_ERR(rc))
-               return PTR_ERR(rc);
-       return 0;
+       return PTR_RET(rc);
 }
 
 static void *hypfs_create_phys_files(struct super_block *sb,