Skip to contentSkip to conversation

afs: remove unused variable 'afs_zero_fid'

PATCH In review YueHaibing 2 participants 2 messages Aug 9, 2019 Afs filesystem

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 afs: remove unused variable 'afs_zero_fid'

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")

---
 fs/afs/fsclient.c | 2 --
 1 file changed, 2 deletions(-)
fs/afs/fsclient.c +0 -2
index 114f281..67af068 100644
@@ -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);
Signature · 1 line
2.7.4
#1 lore raw

Confirmed.

Quoted 18 lines · YueHaibing

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")

---
 fs/afs/fsclient.c | 2 --
 1 file changed, 2 deletions(-)
fs/afs/fsclient.c +0 -0
index 114f281..67af068 100644

fs/afs/fsclient.c line 20

Quoted 8 lines
fs/afs/fsclient.c +0 -2
@@ -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);

begin:vcard
fn:Jeffrey Altman
n:Altman;Jeffrey
org:AuriStor, Inc.
adr:;;255 W 94TH ST STE 6B;New York;NY;10025-6985;United States email;internet:[email protected]
title:CEO
tel;work:+1-212-769-9018 url:https://www.linkedin.com/in/jeffreyaltman/ version:2.1
end:vcard