libpayload: minor cleanups
authorMathias Krause <minipli@googlemail.com>
Tue, 3 Apr 2012 18:42:01 +0000 (20:42 +0200)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 3 Apr 2012 22:40:31 +0000 (00:40 +0200)
commit67997d330dae9c12eb640aa21f7e51b193890461
tree01f9aa258ab8cb289585b3b1a30e950d8352dacc
parentf17789c4ff8faf0340946f8ba6c3b35c02e36cee
libpayload: minor cleanups

Apply some const correctness to const/non-const strings in libc and
libpci (what an ugly cast that was).

Remove duplicated NULL test in printf_putstr(), already done in
print_string() - reduces size of libpayload by a few bytes.

Change-Id: I13f479df13e39d79cab291e9d99d153e1ef43eae
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Reviewed-on: http://review.coreboot.org/849
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marcj303@gmail.com>
payloads/libpayload/libc/printf.c
payloads/libpayload/libpci/libpci.c