aboutsummaryrefslogtreecommitdiffstats
path: root/net/rose
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2006-12-02 22:17:48 -0800
committerDavid S. Miller <davem@davemloft.net>2006-12-02 22:17:48 -0800
commit0506d4068bad834aab1141b5dc5e748eb175c6b3 (patch)
tree73b8c3edab79e3bcd81b4af7df83a8bb1994b0f7 /net/rose
parent1863f0965e716cc61d3c23cf106d41aa070f706f (diff)
downloadkernel_samsung_smdk4412-0506d4068bad834aab1141b5dc5e748eb175c6b3.tar.gz
kernel_samsung_smdk4412-0506d4068bad834aab1141b5dc5e748eb175c6b3.tar.bz2
kernel_samsung_smdk4412-0506d4068bad834aab1141b5dc5e748eb175c6b3.zip
[ROSE] rose_add_loopback_node: propagate -E
David Binderman's icc logs: net/rose/rose_route.c(399): remark #593: variable "err" was set but never used Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose')
-rw-r--r--net/rose/rose_route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rose/rose_route.c b/net/rose/rose_route.c
index a22542fa1bc..7252344779a 100644
--- a/net/rose/rose_route.c
+++ b/net/rose/rose_route.c
@@ -396,7 +396,7 @@ int rose_add_loopback_neigh(void)
int rose_add_loopback_node(rose_address *address)
{
struct rose_node *rose_node;
- unsigned int err = 0;
+ int err = 0;
spin_lock_bh(&rose_node_list_lock);
@@ -432,7 +432,7 @@ int rose_add_loopback_node(rose_address *address)
out:
spin_unlock_bh(&rose_node_list_lock);
- return 0;
+ return err;
}
/*