diff options
author | Angel Pons <th3fanbus@gmail.com> | 2021-04-16 12:16:00 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-04-18 17:19:07 +0000 |
commit | 75b4536085664c8e81882656dbed9e52558e61e4 (patch) | |
tree | c54d0772678e9d96f9067934f7f0339fa55037fa /.gitignore | |
parent | b4a63e9616a4696174ba7102a38483b0f1738601 (diff) | |
download | flashrom-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions