diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2013-11-23 17:46:04 -0600 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2013-11-25 23:59:46 +0100 |
commit | fe9e30d6b74e340f9a97b9e358e20ec8a2785954 (patch) | |
tree | 5dd135cae0becec8b1acc99b81fb76690d3ff395 /util/superiotool/amd.c | |
parent | 85263b06bb423fdeb703f85c8e3378d989e854a3 (diff) |
include/types.h: Add generic enum for error codes
The idea is that instead of:
if (do_something()) do_something_else();
It is more readable to write:
if (do_something() != CB_SUCCESS) handle_error();
Change-Id: I4fa5a6f2d2960cd747fda6602bdfff6aef08f8e2
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4264
Tested-by: build bot (Jenkins)
Reviewed-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/superiotool/amd.c')
0 files changed, 0 insertions, 0 deletions