rx: Rework code which pulls packet from recv queue
authorSimon Wilkinson <sxw@your-file-system.com>
Sun, 8 Jan 2012 11:45:57 +0000 (11:45 +0000)
committerDerrick Brashear <shadow@dementix.org>
Sat, 14 Apr 2012 00:42:24 +0000 (17:42 -0700)
commita187be182ce2915b68af0e318bef352d41f7715a
tree7f1f642f7ecdf57162f4e468027b1049fa0c129f
parent7b45d62ec18726a49dcffe8ddbca8f446ca0bb3e
rx: Rework code which pulls packet from recv queue

Both rxi_ReadProc and rxi_FillReadVector contained copies of the
same code to pull a packet out of the receive queue, and turn it
into the call's currentPacket. Abstract this out into a single common
function, so we're not maintaining the same code in two different
places.

Change-Id: I20af6b4ff19f05e21ffde1a80609be12ad6cfeee
Reviewed-on: http://gerrit.openafs.org/7195
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/rx/rx_rdwr.c