* [PATCH] idr_remove_all: kill unused variable
@ 2007-07-20 16:36 Oleg Nesterov
0 siblings, 0 replies; only message in thread
From: Oleg Nesterov @ 2007-07-20 16:36 UTC (permalink / raw)
To: Andrew Morton; +Cc: Kristian Hoegsberg, linux-kernel
"error" is always equal to 0.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- t/lib/idr.c~ 2007-07-20 20:18:09.000000000 +0400
+++ t/lib/idr.c 2007-07-20 20:19:27.000000000 +0400
@@ -405,7 +405,7 @@ EXPORT_SYMBOL(idr_remove);
*/
void idr_remove_all(struct idr *idp)
{
- int n, id, max, error = 0;
+ int n, id, max;
struct idr_layer *p;
struct idr_layer *pa[MAX_LEVEL];
struct idr_layer **paa = &pa[0];
@@ -415,7 +415,7 @@ void idr_remove_all(struct idr *idp)
max = 1 << n;
id = 0;
- while (id < max && !error) {
+ while (id < max) {
while (n > IDR_BITS && p) {
n -= IDR_BITS;
*paa++ = p;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-20 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20 16:36 [PATCH] idr_remove_all: kill unused variable Oleg Nesterov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®