[coreboot] flashrom: Slight restructure of SPI probe_ functions
Ward Vandewege
ward at gnu.org
Tue Jun 24 03:20:10 CEST 2008
On Sat, Jun 21, 2008 at 07:10:45AM +0200, Peter Stuge wrote:
> Patch attached.
>
>
> //Peter
>
>
> !DSPAM:485c8dbe118861804284693!
> flashrom: Slight restructure of SPI probe_ functions
>
> Preparation for a probe optimization patch to come. This patch does not change
> functionality. spi_probe_rdid was tested to still work on my M57SLI rev 2.
>
> The idea is to have error checks return error immediately when something
> fails, rather than having code inside an if block testing for success.
> This means: Less indentation, more clear what the code checks for.
>
> Signed-off-by: Peter Stuge <peter at stuge.se>
Acked-by: Ward Vandewege <ward at gnu.org>
Thanks,
Ward.
--
Ward Vandewege <ward at fsf.org>
Free Software Foundation - Senior Systems Administrator
More information about the coreboot
mailing list