Skip to content

Commit

Permalink
signal: Remove the siginfo paramater from kernel_dqueue_signal
Browse files Browse the repository at this point in the history
None of the callers use the it so remove it.

Reviewed-by: Thomas Gleixner <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
  • Loading branch information
ebiederm committed Sep 11, 2018
1 parent b16503b commit 961366a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/function/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2311,7 +2311,7 @@ static void handle_exception(struct fsg_common *common)
* into a high-priority EXIT exception.
*/
for (;;) {
int sig = kernel_dequeue_signal(NULL);
int sig = kernel_dequeue_signal();
if (!sig)
break;
if (sig != SIGUSR1) {
Expand Down
2 changes: 1 addition & 1 deletion fs/jffs2/background.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static int jffs2_garbage_collect_thread(void *_c)
if (try_to_freeze())
goto again;

signr = kernel_dequeue_signal(NULL);
signr = kernel_dequeue_signal();

switch(signr) {
case SIGSTOP:
Expand Down
4 changes: 2 additions & 2 deletions include/linux/sched/signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,14 @@ extern void ignore_signals(struct task_struct *);
extern void flush_signal_handlers(struct task_struct *, int force_default);
extern int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info);

static inline int kernel_dequeue_signal(siginfo_t *info)
static inline int kernel_dequeue_signal(void)
{
struct task_struct *tsk = current;
siginfo_t __info;
int ret;

spin_lock_irq(&tsk->sighand->siglock);
ret = dequeue_signal(tsk, &tsk->blocked, info ?: &__info);
ret = dequeue_signal(tsk, &tsk->blocked, &__info);
spin_unlock_irq(&tsk->sighand->siglock);

return ret;
Expand Down

0 comments on commit 961366a

Please sign in to comment.