afs: Remove afs_operation::abort_code
authorDavid Howells <dhowells@redhat.com>
Mon, 15 Jun 2020 23:25:56 +0000 (00:25 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 16 Jun 2020 15:26:57 +0000 (16:26 +0100)
Remove afs_operation::abort_code as it's read but never set.  Use
ac.abort_code instead.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dir.c
fs/afs/internal.h

index 308a125e9de3a7ec85876e1cbc2d2b3997609043..ca6b147963a9ab1729482d5abaeb0b20e741f6de 100644 (file)
@@ -648,7 +648,7 @@ static void afs_do_lookup_success(struct afs_operation *op)
                        vp = &op->file[0];
                        abort_code = vp->scb.status.abort_code;
                        if (abort_code != 0) {
-                               op->abort_code = abort_code;
+                               op->ac.abort_code = abort_code;
                                op->error = afs_abort_to_error(abort_code);
                        }
                        break;
index d2207cb40740d92ee1fac0f07850e37aefd72ed6..598934d923cc25bc5e6f493d44b26af4874b2046 100644 (file)
@@ -771,7 +771,6 @@ struct afs_operation {
        struct timespec64       ctime;          /* Change time to set */
        short                   nr_files;       /* Number of entries in file[], more_files */
        short                   error;
-       unsigned int            abort_code;
        unsigned int            debug_id;
 
        unsigned int            cb_v_break;     /* Volume break counter before op */