From 6a03341df67e8330f6f801deb3a70e529cedb2a6 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 13 Jul 2011 13:54:52 +0100 Subject: [PATCH] libafs: Fix warnings in PPrefetchFromTape The PrefetchFromTape pioctl had a number of set-but-unused variable warnings. Tidy up the code to remove these warnings. Change-Id: I358f7e31ab8e9f03447675be40dc8571650dbe72 Reviewed-on: http://gerrit.openafs.org/4990 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/afs/afs_pioctl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 196bcf8c0..ff3e87d21 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -4910,8 +4910,8 @@ DECL_PIOCTL(PRxStatPeer) DECL_PIOCTL(PPrefetchFromTape) { - afs_int32 code, code1; - afs_int32 bytes, outval; + afs_int32 code; + afs_int32 outval; struct afs_conn *tc; struct rx_call *tcall; struct AFSVolSync tsync; @@ -4954,11 +4954,11 @@ DECL_PIOCTL(PPrefetchFromTape) StartRXAFS_FetchData(tcall, (struct AFSFid *)&tvc->f.fid.Fid, 0, 0); if (!code) { - bytes = rx_Read(tcall, (char *)&outval, sizeof(afs_int32)); + rx_Read(tcall, (char *)&outval, sizeof(afs_int32)); code = EndRXAFS_FetchData(tcall, &OutStatus, &CallBack, &tsync); } - code1 = rx_EndCall(tcall, code); + code = rx_EndCall(tcall, code); RX_AFS_GLOCK(); } else code = -1; -- 2.39.5