[POWERPC] boot: Simplify gunzip_finish
authorMilton Miller <miltonm@bga.com>
Fri, 21 Sep 2007 23:03:52 +0000 (09:03 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 3 Oct 2007 01:48:43 +0000 (11:48 +1000)
commit51a505d73bfed863135861fdc0496a09766b69d5
tree4ee03e6d150f7553e77a4d8d67da06711a6f5ee9
parente47654d016c68a02f654ac16951577804f7789c7
[POWERPC] boot: Simplify gunzip_finish

Call gunzip_partial to calculate the remaining length and copy the
data to the user buffer.  This makes it shorter and reduces
duplication.

Signed-off-by: Milton Miller <miltonm@bga.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/boot/gunzip_util.c