lkml.org 
[lkml]   [2006]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[patch] [trivial] remove needless check in binfmt_elf.c
From
Date
local variable i is unsigned int and thus cannot be negative.

signed-off-by: Carsten Otte <cotte@de.ibm.com>
--
diff -ruN linux-2.6.16/fs/binfmt_elf.c linux-2.6.16-fix/fs/binfmt_elf.c
--- linux-2.6.16/fs/binfmt_elf.c 2006-03-20 06:53:29.000000000 +0100
+++ linux-2.6.16-fix/fs/binfmt_elf.c 2006-03-21 14:02:33.000000000 +0100
@@ -1334,7 +1334,7 @@

i = p->state ? ffz(~p->state) + 1 : 0;
psinfo->pr_state = i;
- psinfo->pr_sname = (i < 0 || i > 5) ? '.' : "RSDTZW"[i];
+ psinfo->pr_sname = (i > 5) ? '.' : "RSDTZW"[i];
psinfo->pr_zomb = psinfo->pr_sname == 'Z';
psinfo->pr_nice = task_nice(p);
psinfo->pr_flag = p->flags;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-03-21 14:28    [W:0.063 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site