aboutsummaryrefslogtreecommitdiffstats
path: root/util/list_yet_unsupported_chips.sh
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-04-16 12:16:00 +0200
committerNico Huber <nico.h@gmx.de>2021-04-18 17:19:07 +0000
commit75b4536085664c8e81882656dbed9e52558e61e4 (patch)
treec54d0772678e9d96f9067934f7f0339fa55037fa /util/list_yet_unsupported_chips.sh
parentb4a63e9616a4696174ba7102a38483b0f1738601 (diff)
downloadflashrom-75b4536085664c8e81882656dbed9e52558e61e4.tar.gz
flashrom-75b4536085664c8e81882656dbed9e52558e61e4.tar.bz2
flashrom-75b4536085664c8e81882656dbed9e52558e61e4.zip
i2c_helper_linux.c: Use a fixed-size buffer
Given that the buffer size is known in advance, using malloc() is not necessary. To avoid open-coding buffer sizes, add some trailing null characters to `I2C_DEV_PREFIX`, as placeholders for bus number digits. Finally, replace the now-unnecessary `goto` statements with `return`. Change-Id: I6060749c6ded10949344caee3cc3943306e74a1c Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52415 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'util/list_yet_unsupported_chips.sh')
0 files changed, 0 insertions, 0 deletions