Commit c9d10c49 authored by David S. Miller's avatar David S. Miller

rxrpc: Kill set but unused variable 'local' in rxrpc_UDP_error_handler()

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9e5e10a2
...@@ -139,7 +139,7 @@ void rxrpc_UDP_error_handler(struct work_struct *work) ...@@ -139,7 +139,7 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
struct rxrpc_transport *trans = struct rxrpc_transport *trans =
container_of(work, struct rxrpc_transport, error_handler); container_of(work, struct rxrpc_transport, error_handler);
struct sk_buff *skb; struct sk_buff *skb;
int local, err; int err;
_enter(""); _enter("");
...@@ -157,7 +157,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work) ...@@ -157,7 +157,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
switch (ee->ee_origin) { switch (ee->ee_origin) {
case SO_EE_ORIGIN_ICMP: case SO_EE_ORIGIN_ICMP:
local = 0;
switch (ee->ee_type) { switch (ee->ee_type) {
case ICMP_DEST_UNREACH: case ICMP_DEST_UNREACH:
switch (ee->ee_code) { switch (ee->ee_code) {
...@@ -207,7 +206,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work) ...@@ -207,7 +206,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
case SO_EE_ORIGIN_LOCAL: case SO_EE_ORIGIN_LOCAL:
_proto("Rx Received local error { error=%d }", _proto("Rx Received local error { error=%d }",
ee->ee_errno); ee->ee_errno);
local = 1;
break; break;
case SO_EE_ORIGIN_NONE: case SO_EE_ORIGIN_NONE:
...@@ -215,7 +213,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work) ...@@ -215,7 +213,6 @@ void rxrpc_UDP_error_handler(struct work_struct *work)
default: default:
_proto("Rx Received error report { orig=%u }", _proto("Rx Received error report { orig=%u }",
ee->ee_origin); ee->ee_origin);
local = 0;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment