diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2010-09-03 10:33:39 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-07 03:12:56 +0200 |
commit | 5d9c54c1e9ececcf7e99c4f014f9bec7ee3a7def (patch) | |
tree | b901d720e08c5762a0bd52b404393bb8532a6a15 /net/x25/sysctl_net_x25.c | |
parent | wan: make read-only data const (diff) | |
download | linux-5d9c54c1e9ececcf7e99c4f014f9bec7ee3a7def.tar.xz linux-5d9c54c1e9ececcf7e99c4f014f9bec7ee3a7def.zip |
tipc: Minor optimizations to name table translation code
Optimizes TIPC's name table translation code to avoid unnecessary
manipulation of the node address field of the resulting port id when
name translation fails. This change is possible because a valid port
id cannot have a reference field of zero, so examining the reference
only is sufficient to determine if the translation was successful.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/sysctl_net_x25.c')
0 files changed, 0 insertions, 0 deletions