File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -1088,7 +1088,6 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
1088
1088
struct mm_struct * mm = current -> mm ;
1089
1089
struct linux_binfmt * binfmt ;
1090
1090
const struct cred * old_cred ;
1091
- int retval = 0 ;
1092
1091
int argc = 0 ;
1093
1092
struct coredump_params cprm = {
1094
1093
.siginfo = siginfo ,
@@ -1123,8 +1122,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
1123
1122
if (coredump_force_suid_safe (& cprm ))
1124
1123
cred -> fsuid = GLOBAL_ROOT_UID ;
1125
1124
1126
- retval = coredump_wait (siginfo -> si_signo , & core_state );
1127
- if (retval < 0 )
1125
+ if (coredump_wait (siginfo -> si_signo , & core_state ) < 0 )
1128
1126
return ;
1129
1127
1130
1128
old_cred = override_creds (cred );
@@ -1160,8 +1158,7 @@ void vfs_coredump(const kernel_siginfo_t *siginfo)
1160
1158
1161
1159
/* get us an unshared descriptor table; almost always a no-op */
1162
1160
/* The cell spufs coredump code reads the file descriptor tables */
1163
- retval = unshare_files ();
1164
- if (retval )
1161
+ if (unshare_files ())
1165
1162
goto close_fail ;
1166
1163
1167
1164
if ((cn .mask & COREDUMP_KERNEL ) && !coredump_write (& cn , & cprm , binfmt ))
You can’t perform that action at this time.
0 commit comments