1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-06-30 21:52:36 +02:00

Fix sparse warning: Using plain integer as NULL pointer

This patch fixes the "using plain integer as NULL pointer" warnings
generated by running sparse on the flashrom source.

Corresponding to flashrom svn r1255.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Mathias Krause <mathias.krause@secunet.com>
Acked-by: Stefan Reinauer <stepan@coreboot.org>
This commit is contained in:
Peter Huewe
2011-01-24 19:15:51 +00:00
committed by Stefan Reinauer
parent ff30d8a538
commit 73f8ec8b1e
7 changed files with 27 additions and 27 deletions

View File

@ -1173,7 +1173,7 @@ const struct penable chipset_enables[] = {
int chipset_flash_enable(void)
{
struct pci_dev *dev = 0;
struct pci_dev *dev = NULL;
int ret = -2; /* Nothing! */
int i;