diff options
author | David Howells <dhowells@redhat.com> | 2016-03-04 16:53:46 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2016-03-04 16:53:46 +0100 |
commit | 5b8848d14912d5e9974d5d83d71ed6cba2b49345 (patch) | |
tree | a6c02244f92ba6fa0120576001c98e66300a867b /net/rxrpc/ar-ack.c | |
parent | rxrpc: Fix a case where a call event bit is being used as a flag bit (diff) | |
download | linux-5b8848d14912d5e9974d5d83d71ed6cba2b49345.tar.xz linux-5b8848d14912d5e9974d5d83d71ed6cba2b49345.zip |
rxrpc: Convert call flag and event numbers into enums
Convert call flag and event numbers into enums and move their definitions
outside of the struct.
Also move the call state enum outside of the struct and add an extra
element to count the number of states.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/ar-ack.c')
-rw-r--r-- | net/rxrpc/ar-ack.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/rxrpc/ar-ack.c b/net/rxrpc/ar-ack.c index adc555e0323d..7cb7e45c8bad 100644 --- a/net/rxrpc/ar-ack.c +++ b/net/rxrpc/ar-ack.c @@ -886,10 +886,11 @@ void rxrpc_process_call(struct work_struct *work) struct rxrpc_header hdr; struct msghdr msg; struct kvec iov[5]; + enum rxrpc_call_event genbit; unsigned long bits; __be32 data, pad; size_t len; - int genbit, loop, nbit, ioc, ret, mtu; + int loop, nbit, ioc, ret, mtu; u32 abort_code = RX_PROTOCOL_ERROR; u8 *acks = NULL; |