2008-08-19 07:06:01

by Ilpo Järvinen

[permalink] [raw]
Subject: [PATCH] nubus: fix mis-indented statement


It seems this is the right way around because otherwise the
len usage in the outer loop would be pretty pointless.

Signed-off-by: Ilpo J?rvinen <[email protected]>
---
drivers/nubus/nubus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c
index 2f047e5..f5f7584 100644
--- a/drivers/nubus/nubus.c
+++ b/drivers/nubus/nubus.c
@@ -126,7 +126,7 @@ static void nubus_advance(unsigned char **ptr, int len, int map)
{
while(not_useful(p,map))
p++;
- p++;
+ p++;
len--;
}
*ptr = p;
--
1.5.2.2