From: Garrett Wollman Date: Sun, 15 Jul 2012 19:41:25 +0000 (-0400) Subject: rx: dead initialization in rxi_RestoreDataBufs X-Git-Tag: upstream/1.8.0_pre1^2~2217 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0b69ca34eb55f9d0a53e5f6b2e6155c7824b2fde;p=packages%2Fo%2Fopenafs.git rx: dead initialization in rxi_RestoreDataBufs Don't initialize iov only to overwrite it immediately below. Change-Id: I5b5660f31e02094a8871a0726dbd5be7ae6f9ea6 Reviewed-on: http://gerrit.openafs.org/7770 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/rx/rx_packet.c b/src/rx/rx_packet.c index 119f8ef4a..15af43d8c 100644 --- a/src/rx/rx_packet.c +++ b/src/rx/rx_packet.c @@ -956,7 +956,7 @@ void rxi_RestoreDataBufs(struct rx_packet *p) { unsigned int i; - struct iovec *iov = &p->wirevec[2]; + struct iovec *iov; RX_PACKET_IOV_INIT(p);