summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libpci/libpci.c
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-04-03 20:42:01 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-04-04 00:40:31 +0200
commit67997d330dae9c12eb640aa21f7e51b193890461 (patch)
tree01f9aa258ab8cb289585b3b1a30e950d8352dacc /payloads/libpayload/libpci/libpci.c
parentf17789c4ff8faf0340946f8ba6c3b35c02e36cee (diff)
downloadcoreboot-67997d330dae9c12eb640aa21f7e51b193890461.tar.xz
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>
Diffstat (limited to 'payloads/libpayload/libpci/libpci.c')
-rw-r--r--payloads/libpayload/libpci/libpci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/libpci/libpci.c b/payloads/libpayload/libpci/libpci.c
index ecc2b25c91..e9df10c42f 100644
--- a/payloads/libpayload/libpci/libpci.c
+++ b/payloads/libpayload/libpci/libpci.c
@@ -96,7 +96,7 @@ void pci_filter_init(struct pci_access* pacc, struct pci_filter* pf)
pf->device = -1;
}
-static char *invalid_pci_device_string = (char *)"invalid pci device string";
+static char invalid_pci_device_string[] = "invalid pci device string";
/* parse domain:bus:dev.func (with all components but "dev" optional)
* into filter.