1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Remove extra va_start/va_end calls (bug 17244)

This commit is contained in:
Andreas Schwab
2015-07-07 12:51:17 +02:00
parent a6d9312c4d
commit 1f60740e5f
3 changed files with 9 additions and 13 deletions

View File

@ -65,8 +65,6 @@ __old_semctl (int semid, int semnum, int cmd, ...)
union semun arg;
va_list ap;
va_start (ap, cmd);
/* Get the argument only if required. */
arg.buf = NULL;
switch (cmd)
@ -85,8 +83,6 @@ __old_semctl (int semid, int semnum, int cmd, ...)
break;
}
va_end (ap);
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd,
&arg);
}
@ -99,8 +95,6 @@ __new_semctl (int semid, int semnum, int cmd, ...)
union semun arg;
va_list ap;
va_start (ap, cmd);
/* Get the argument only if required. */
arg.buf = NULL;
switch (cmd)
@ -119,8 +113,6 @@ __new_semctl (int semid, int semnum, int cmd, ...)
break;
}
va_end (ap);
return INLINE_SYSCALL (ipc, 5, IPCOP_semctl, semid, semnum, cmd | __IPC_64,
&arg);
}