Skip to content
Snippets Groups Projects
Commit 5eba9bb8 authored by Thomas Meyer's avatar Thomas Meyer Committed by Martin Schwidefsky
Browse files

s390/hypfs: Cocci spatch "ptr_ret.spatch"

parent 735e849f
No related branches found
No related tags found
No related merge requests found
...@@ -651,9 +651,7 @@ static int hypfs_create_cpu_files(struct super_block *sb, ...@@ -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); diag224_idx2name(cpu_info__ctidx(diag204_info_type, cpu_info), buffer);
rc = hypfs_create_str(sb, cpu_dir, "type", buffer); rc = hypfs_create_str(sb, cpu_dir, "type", buffer);
if (IS_ERR(rc)) return PTR_RET(rc);
return PTR_ERR(rc);
return 0;
} }
static void *hypfs_create_lpar_files(struct super_block *sb, 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,9 +700,7 @@ static int hypfs_create_phys_cpu_files(struct super_block *sb,
return PTR_ERR(rc); return PTR_ERR(rc);
diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer); diag224_idx2name(phys_cpu__ctidx(diag204_info_type, cpu_info), buffer);
rc = hypfs_create_str(sb, cpu_dir, "type", buffer); rc = hypfs_create_str(sb, cpu_dir, "type", buffer);
if (IS_ERR(rc)) return PTR_RET(rc);
return PTR_ERR(rc);
return 0;
} }
static void *hypfs_create_phys_files(struct super_block *sb, static void *hypfs_create_phys_files(struct super_block *sb,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment