[7/7] remove casting of __detach_pid() results to void

From: William Lee Irwin III
Date: Wed Sep 01 2004 - 12:47:54 EST


On Wed, Sep 01, 2004 at 10:35:29AM -0700, William Lee Irwin III wrote:
> The renaming of ->pid_chain was spurious; the following patch backs it out.

Casting an expression to void to ignore the result is only necessary
for __must_check function calls and in the interior of nop macros. The
following patch backs out the addition of void casts on the result of
__detach_pid().


Index: kirill-2.6.9-rc1-mm2/kernel/pid.c
===================================================================
--- kirill-2.6.9-rc1-mm2.orig/kernel/pid.c 2004-09-01 10:16:27.524209800 -0700
+++ kirill-2.6.9-rc1-mm2/kernel/pid.c 2004-09-01 10:17:50.529591064 -0700
@@ -234,13 +234,13 @@
*/
void switch_exec_pids(task_t *leader, task_t *thread)
{
- (void)__detach_pid(leader, PIDTYPE_PID);
- (void)__detach_pid(leader, PIDTYPE_TGID);
- (void)__detach_pid(leader, PIDTYPE_PGID);
- (void)__detach_pid(leader, PIDTYPE_SID);
+ __detach_pid(leader, PIDTYPE_PID);
+ __detach_pid(leader, PIDTYPE_TGID);
+ __detach_pid(leader, PIDTYPE_PGID);
+ __detach_pid(leader, PIDTYPE_SID);

- (void)__detach_pid(thread, PIDTYPE_PID);
- (void)__detach_pid(thread, PIDTYPE_TGID);
+ __detach_pid(thread, PIDTYPE_PID);
+ __detach_pid(thread, PIDTYPE_TGID);

leader->pid = leader->tgid = thread->pid;
thread->pid = thread->tgid;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/