Skip to contentSkip to conversation

trivial: unused var in sunrpc

PATCH New Robert Love 1 participant 1 message Feb 15, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 trivial: unused var in sunrpc

There is an unused variable, `int maxlen', in net/sunrpc/clnt.c ::
rpc_setup_pipedir().

Attached patch, against 2.5.61, removes it. Please, apply.

Robert Love

 net/sunrpc/clnt.c |    1 -
 1 files changed, 1 deletion(-)
net/sunrpc/clnt.c +0 -1
diff -urN linux-2.5.61/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -67,7 +67,6 @@
 rpc_setup_pipedir(struct rpc_clnt *clnt, char *dir_name)
 {
 	static uint32_t clntid;
-	int maxlen = sizeof(clnt->cl_pathname);
 	int error;
 
 	if (dir_name == NULL)