]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
zlib/gunzip: Use WATCHDOG_RESET macro
authorStefan Roese <sr@denx.de>
Wed, 8 Sep 2010 13:34:58 +0000 (15:34 +0200)
committerWolfgang Denk <wd@denx.de>
Tue, 12 Oct 2010 19:15:10 +0000 (21:15 +0200)
commitf852628638654f2dfa5eee3ec6a307a17b138ba7
tree06d273a843f009b70e1b61614550cec6585078aa
parent6213b8ffa58ed605cefb8de25c2d103dcba56502
zlib/gunzip: Use WATCHDOG_RESET macro

As usually done in U-Boot, the watchdog_reset code is called via a
macro (WATCHDOG_RESET). In zlib.c this was done differently, by using
a function pointer which is initialized with WATCHDOG_RESET upon watchdog
usage or with NULL otherwise. This patch now uses the plain
WATCHDOG_RESET macros to call the function resulting in slightly smaller
U-Boot images and simpler code.

U-Boot code size reduction:

PowerPC board with watchdog support (lwmon5):
-> 80 bytes smaller image size

PowerPC board without watchdog support (sequoia):
-> 112 bytes smaller image size

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Detlev Zundel <dzu@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Detlev Zundel <dzu@denx.de>
lib/gunzip.c
lib/zlib.c