aboutsummaryrefslogtreecommitdiffstats
path: root/spi25_statusreg.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-08-03 15:26:19 +1000
committerNico Huber <nico.h@gmx.de>2021-08-17 16:29:35 +0000
commitc87a770f5d7072122bc9d3c501a34905052daa7f (patch)
treec9cb3562f6faac1332d2bf453aa681b198a0b37c /spi25_statusreg.c
parente44e6eb32ff1dcde3305535ecf38e74b8c736c02 (diff)
downloadflashrom-c87a770f5d7072122bc9d3c501a34905052daa7f.tar.gz
flashrom-c87a770f5d7072122bc9d3c501a34905052daa7f.tar.bz2
flashrom-c87a770f5d7072122bc9d3c501a34905052daa7f.zip
linux_mtd: Free param right after its last usage
Param is only used in the first half of init function, and it is local, so there is no need to keep it until the end. This makes handling error paths in the second half of init function shorter, because those paths can just return 1 instead of going to a label. BUG=b:185191942 TEST=builds and ninja test from CB:56413 Change-Id: I126a8d06297ef4d42bc93a73f7067ccc1352d1e9 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/56822 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'spi25_statusreg.c')
0 files changed, 0 insertions, 0 deletions