mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 14:11:15 +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:

committed by
Stefan Reinauer

parent
ff30d8a538
commit
73f8ec8b1e
@ -30,7 +30,7 @@ int noop_shutdown(void)
|
||||
void *fallback_map(const char *descr, unsigned long phys_addr, size_t len)
|
||||
{
|
||||
/* FIXME: Should return phys_addr. */
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* No-op/fallback unmap() for programmers which don't need special handling */
|
||||
|
Reference in New Issue
Block a user