rxrpc: Kill set but unused variable 'local' in rxrpc_UDP_error_handler()
authorDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 22:37:11 +0000 (18:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 22:37:11 +0000 (18:37 -0400)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/ar-error.c

index d4d1ae26d29313fffb1230a1fdcbe09d740a7cd0..5d6b572a67049319af1c8def161911eaf557a142 100644 (file)
@@ -139,7 +139,7 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
        struct rxrpc_transport *trans =
                container_of(work, struct rxrpc_transport, error_handler);
        struct sk_buff *skb;
-       int local, err;
+       int err;
 
        _enter("");
 
@@ -157,7 +157,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
 
        switch (ee->ee_origin) {
        case SO_EE_ORIGIN_ICMP:
-               local = 0;
                switch (ee->ee_type) {
                case ICMP_DEST_UNREACH:
                        switch (ee->ee_code) {
@@ -207,7 +206,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
        case SO_EE_ORIGIN_LOCAL:
                _proto("Rx Received local error { error=%d }",
                       ee->ee_errno);
-               local = 1;
                break;
 
        case SO_EE_ORIGIN_NONE:
@@ -215,7 +213,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
        default:
                _proto("Rx Received error report { orig=%u }",
                       ee->ee_origin);
-               local = 0;
                break;
        }