Attention is currently required from: Nikolai Artemiev.
Patch set 7:Code-Review +1
4 comments:
File flashrom.c:
if (ret != FLASHROM_WP_OK)
return -1;
return 0;
ternary operator seems more concise here.
struct flashrom_wp_cfg *original_wp_cfg = NULL;
struct flashrom_wp_cfg *unlocked_cfg = NULL;
Do these need to be initialised, if done unnecessarily it can obscure static analysis.
Patch Set #7, Line 1696: unlocked_cfg
be consistent `unlocked_wp_cfg`
Patch Set #7, Line 1708: return -1;
are you leaking `original_wp_cfg` on the return here?
This function could perhaps do with some goto's to clean up the error path resource management complexity.
To view, visit change 69517. To unsubscribe, or for help writing mail filters, visit settings.