9p: client code cleanup
Subsystems (3)
PATCH 1/1 9p: client code cleanup
Make p9_client_version static since only used in one file. Remove p9_client_auth because it is defined but never used. Compile tested only.
Signed-off-by Stephen Hemminger <[email protected]>
--- include/net/9p/client.h | 3 --- net/9p/client.c | 6 ++---- 2 files changed, 2 insertions(+), 7 deletions(-)
include/net/9p/client.h +0 -3
@@ -212,15 +212,12 @@ struct p9_dirent {int p9_client_statfs (struct p9_fid *fid,struct p9_rstatfs *sb);int p9_client_rename (struct p9_fid *fid,struct p9_fid *newdirfid,char *name); -int p9_client_version (struct p9_client *);struct p9_client *p9_client_create (const char *dev_name,char *options);void p9_client_destroy (struct p9_client *clnt);void p9_client_disconnect (struct p9_client *clnt);void p9_client_begin_disconnect (struct p9_client *clnt);struct p9_fid *p9_client_attach (struct p9_client *clnt,struct p9_fid *afid,char *uname,u32 n_uname,char *aname); -struct p9_fid *p9_client_auth (struct p9_client *clnt,char *uname, -u32 n_uname,char *aname);struct p9_fid *p9_client_walk (struct p9_fid *oldfid,int nwname,char **wnames,int clone);int p9_client_open (struct p9_fid *fid,int mode);
net/9p/client.c +1 -50
69 lines not on this page · raw message
From: Stephen Hemminger <[email protected]>
Date: Tue, 19 Oct 2010 09:48:16 -0700
Quoted 5 lines
Make
p9_client_versionstatic since only used in one file. Removep9_client_authbecause it is defined but never used. Compile tested only.Signed-off-by Stephen Hemminger <[email protected]>
Applied.