git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
net
/
x25
/
x25_proc.c
diff --git
a/net/x25/x25_proc.c
b/net/x25/x25_proc.c
index
64fff05
..
ef3140d
100644
(file)
--- a/
net/x25/x25_proc.c
+++ b/
net/x25/x25_proc.c
@@
-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;
}