diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 05:59:51 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-26 15:10:21 -0400 |
commit | 5eba9bb80f0452a595cd6ddac7dacfdd5e1986cd (patch) | |
tree | c6560758d6eab07d66436335007da17309d9bb15 /arch/s390/hypfs | |
parent | 735e849f725ba2c4587e7551f9985d3cc3bb5c0e (diff) |
s390/hypfs: Cocci spatch "ptr_ret.spatch"
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>
Diffstat (limited to 'arch/s390/hypfs')
-rw-r--r-- | arch/s390/hypfs/hypfs_diag.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c index 7fd3690b6760..138893e5f736 100644 --- a/arch/s390/hypfs/hypfs_diag.c +++ b/arch/s390/hypfs/hypfs_diag.c | |||
@@ -651,9 +651,7 @@ static int hypfs_create_cpu_files(struct super_block *sb, | |||
651 | } | 651 | } |
652 | diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer); | 652 | diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer); |
653 | rc = hypfs_create_str(sb, cpu_dir, "type", buffer); | 653 | rc = hypfs_create_str(sb, cpu_dir, "type", buffer); |
654 | if (IS_ERR(rc)) | 654 | return PTR_RET(rc); |
655 | return PTR_ERR(rc); | ||
656 | return 0; | ||
657 | } | 655 | } |
658 | 656 | ||
659 | static void *hypfs_create_lpar_files(struct super_block *sb, | 657 | 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, | |||
702 | return PTR_ERR(rc); | 700 | return PTR_ERR(rc); |
703 | diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer); | 701 | diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer); |
704 | rc = hypfs_create_str(sb, cpu_dir, "type", buffer); | 702 | rc = hypfs_create_str(sb, cpu_dir, "type", buffer); |
705 | if (IS_ERR(rc)) | 703 | return PTR_RET(rc); |
706 | return PTR_ERR(rc); | ||
707 | return 0; | ||
708 | } | 704 | } |
709 | 705 | ||
710 | static void *hypfs_create_phys_files(struct super_block *sb, | 706 | static void *hypfs_create_phys_files(struct super_block *sb, |