new helper: restore_saved_sigmask()
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / ia64 / kernel / signal.c
index 7523501d3bc087bbb39a22573776ba365d131aeb..39d8f3afff495442cf4a28aa6236fceb7b64b422 100644 (file)
@@ -538,8 +538,5 @@ ia64_do_signal (struct sigscratch *scr, long in_syscall)
 
        /* if there's no signal to deliver, we just put the saved sigmask
         * back */
-       if (current_thread_info()->status & TS_RESTORE_SIGMASK) {
-               current_thread_info()->status &= ~TS_RESTORE_SIGMASK;
-               sigprocmask(SIG_SETMASK, &current->saved_sigmask, NULL);
-       }
+       restore_saved_sigmask();
 }