From: Simon Wilkinson Date: Wed, 13 Jul 2011 12:54:52 +0000 (+0100) Subject: libafs: Fix warnings in PPrefetchFromTape X-Git-Tag: upstream/1.8.0_pre1^2~3547 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=6a03341df67e8330f6f801deb3a70e529cedb2a6;p=packages%2Fo%2Fopenafs.git 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 --- 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;