[coreboot] [PATCH] Remove scanbuild warning in hypertransport.c
mylesgw at gmail.com
Tue May 26 17:25:49 CEST 2009
Scanbuild finds a possible null pointer dereference here:
There are two ways that I thought of fixing it.
The first way is just to insert an
if (first == NULL) return NULL;
at line 53 and remove the if (first) condition.
The only problem with that is that it makes the change look bigger than it is.
Here's a simpler looking change. Either one is fine with me. Boot
tested on s2892.
Signed-off-by: Myles Watson <mylesgw at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1875 bytes
Desc: not available
More information about the coreboot