diff options
author | David Howells <dhowells@redhat.com> | 2020-04-08 18:49:08 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2020-05-31 17:19:52 +0300 |
commit | 7126ead910aa9fcc9e16e9e7a8c9179658261f1d (patch) | |
tree | 9428cae3207e57bd45b1a61fc83b7c5db2ab89db /fs/afs/rxrpc.c | |
parent | 38355eec6a7d2b8f2f313f9174736dc877744e59 (diff) | |
download | linux-7126ead910aa9fcc9e16e9e7a8c9179658261f1d.tar.xz |
afs: Remove the error argument from afs_protocol_error()
Remove the error argument from afs_protocol_error() as it's always
-EBADMSG.
Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'fs/afs/rxrpc.c')
-rw-r--r-- | fs/afs/rxrpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/afs/rxrpc.c b/fs/afs/rxrpc.c index c84d571782d7..00b87bac4fec 100644 --- a/fs/afs/rxrpc.c +++ b/fs/afs/rxrpc.c @@ -961,11 +961,11 @@ int afs_extract_data(struct afs_call *call, bool want_more) /* * Log protocol error production. */ -noinline int afs_protocol_error(struct afs_call *call, int error, +noinline int afs_protocol_error(struct afs_call *call, enum afs_eproto_cause cause) { - trace_afs_protocol_error(call, error, cause); + trace_afs_protocol_error(call, cause); if (call) call->unmarshalling_error = true; - return error; + return -EBADMSG; } |