aboutsummaryrefslogtreecommitdiffstats
path: root/ichspi.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-04-28 10:08:15 +1000
committerNico Huber <nico.h@gmx.de>2021-04-28 15:12:08 +0000
commit04fff28b462483f60ca1aff1362f106021e793db (patch)
tree07f0acb4e214bc4ce0fa58d8f5827e163a8b40a9 /ichspi.c
parent45d50a101e8073191e6d88143990ed91d3bfe815 (diff)
downloadflashrom-04fff28b462483f60ca1aff1362f106021e793db.tar.gz
flashrom-04fff28b462483f60ca1aff1362f106021e793db.tar.bz2
flashrom-04fff28b462483f60ca1aff1362f106021e793db.zip
ene_lpc.c: Extract params check into a function
This allows char *p to become a local variable in check_params, and it is allocated and freed within check_params function. Which means init function does not need char *p anymore, in particular does not need to free it - and this makes cleanup after failed init easier. As a good side effect, init function becomes easier to read. BUG=b:185191942 TEST=builds Change-Id: I7c3b6dea0edbc7547f0b307a0508c7d2b2a6d370 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52684 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'ichspi.c')
0 files changed, 0 insertions, 0 deletions