summaryrefslogtreecommitdiffstats
path: root/fs/afs/rxrpc.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2020-04-08 17:49:08 +0200
committerDavid Howells <dhowells@redhat.com>2020-05-31 16:19:52 +0200
commit7126ead910aa9fcc9e16e9e7a8c9179658261f1d (patch)
tree9428cae3207e57bd45b1a61fc83b7c5db2ab89db /fs/afs/rxrpc.c
parentafs: Set error flag rather than return error from file status decode (diff)
downloadlinux-7126ead910aa9fcc9e16e9e7a8c9179658261f1d.tar.xz
linux-7126ead910aa9fcc9e16e9e7a8c9179658261f1d.zip
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.c6
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;
}