Commit 00b5407e authored by David Howells's avatar David Howells

rxrpc: Fix uninitialised variable warning

Fix the following uninitialised variable warning:

../net/rxrpc/call_event.c: In function 'rxrpc_process_call':
../net/rxrpc/call_event.c:879:58: warning: 'error' may be used uninitialized in this function [-Wmaybe-uninitialized]
    _debug("post net error %d", error);
                                                          ^
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 30787a41
...@@ -868,7 +868,6 @@ void rxrpc_process_call(struct work_struct *work) ...@@ -868,7 +868,6 @@ void rxrpc_process_call(struct work_struct *work)
/* deal with events of a final nature */ /* deal with events of a final nature */
if (test_bit(RXRPC_CALL_EV_RCVD_ERROR, &call->events)) { if (test_bit(RXRPC_CALL_EV_RCVD_ERROR, &call->events)) {
enum rxrpc_skb_mark mark; enum rxrpc_skb_mark mark;
int error;
clear_bit(RXRPC_CALL_EV_CONN_ABORT, &call->events); clear_bit(RXRPC_CALL_EV_CONN_ABORT, &call->events);
clear_bit(RXRPC_CALL_EV_REJECT_BUSY, &call->events); clear_bit(RXRPC_CALL_EV_REJECT_BUSY, &call->events);
...@@ -876,10 +875,10 @@ void rxrpc_process_call(struct work_struct *work) ...@@ -876,10 +875,10 @@ void rxrpc_process_call(struct work_struct *work)
if (call->completion == RXRPC_CALL_NETWORK_ERROR) { if (call->completion == RXRPC_CALL_NETWORK_ERROR) {
mark = RXRPC_SKB_MARK_NET_ERROR; mark = RXRPC_SKB_MARK_NET_ERROR;
_debug("post net error %d", error); _debug("post net error %d", call->error);
} else { } else {
mark = RXRPC_SKB_MARK_LOCAL_ERROR; mark = RXRPC_SKB_MARK_LOCAL_ERROR;
_debug("post net local error %d", error); _debug("post net local error %d", call->error);
} }
if (rxrpc_post_message(call, mark, call->error, true) < 0) if (rxrpc_post_message(call, mark, call->error, true) < 0)
......
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