This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / x25 / x25_proc.c
index 64fff05..ef3140d 100644 (file)
@@ -32,11 +32,10 @@ static __inline__ struct x25_route *x25_get_route_idx(loff_t pos)
 
        list_for_each(route_entry, &x25_route_list) {
                rt = list_entry(route_entry, struct x25_route, node);
-               if (!pos--)
-                       goto found;
+               if (--pos)
+                       break;
        }
-       rt = NULL;
-found:
+
        return rt;
 }