]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
afs: remove unused variable 'afs_zero_fid'
authorYueHaibing <yuehaibing@huawei.com>
Fri, 9 Aug 2019 08:42:31 +0000 (16:42 +0800)
committerDavid Howells <dhowells@redhat.com>
Mon, 2 Sep 2019 10:43:54 +0000 (11:43 +0100)
fs/afs/fsclient.c:18:29: warning:
 afs_zero_fid defined but not used [-Wunused-const-variable=]

It is never used since commit 025db80c9e42 ("afs: Trace
the initiation and completion of client calls")

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c

index 114f281f3687880a9739a94d23228179f83b8bfa..67af0682342e3720710df3f3e52e0d6d7c0412e1 100644 (file)
@@ -15,8 +15,6 @@
 #include "xdr_fs.h"
 #include "protocol_yfs.h"
 
-static const struct afs_fid afs_zero_fid;
-
 static inline void afs_use_fs_server(struct afs_call *call, struct afs_cb_interest *cbi)
 {
        call->cbi = afs_get_cb_interest(cbi);