* [PATCH] afs: remove unused variable afs_zero_fid
@ 2018-09-04 14:44 Colin King
0 siblings, 0 replies; only message in thread
From: Colin King @ 2018-09-04 14:44 UTC (permalink / raw)
To: David Howells, linux-afs; +Cc: kernel-janitors, linux-kernel
From: Colin Ian King <colin.king@canonical.com>
Variable afs_zero_fid is defined but not used, hence it is
redundant and can be removed.
Cleans up clang warning:
'afs_zero_fid' defined but not used [-Wunused-const-variable=]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
fs/afs/fsclient.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index 50929cb91732..1310ffe8da48 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -18,8 +18,6 @@
#include "afs_fs.h"
#include "xdr_fs.h"
-static const struct afs_fid afs_zero_fid;
-
/*
* We need somewhere to discard into in case the server helpfully returns more
* than we asked for in FS.FetchData{,64}.
--
2.17.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-09-04 14:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-04 14:44 [PATCH] afs: remove unused variable afs_zero_fid Colin King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).