coreboot/src
Jacob Garber 464f4d6ee2 device: Tidy up add_more_links()
- Add documentation comment
- Use 'unsigned int' to make checkpatch happy
- Return early if no more links need to be added
- Add error handling if malloc fails
- Clean up whitespace

Change-Id: I70976ee2539b058721d0ae3c15edf279253cd9b7
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: Coverity CID 1229634
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33238
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-06-28 19:32:18 +00:00
..
acpi arch/x86: Add common AMD ACPI hardware definitions 2017-11-10 19:15:38 +00:00
arch arch/riscv/mcall: Drop debug code 2019-06-28 07:35:56 +00:00
commonlib commonlib/storage: use ALIGN_UP instead of ALIGN for better readability 2019-06-21 12:49:43 +00:00
console add ctype.h header 2019-06-24 21:15:14 +00:00
cpu cpu/amd/family_10h-family_15h: Remove dead assignment 2019-06-28 19:23:21 +00:00
device device: Tidy up add_more_links() 2019-06-28 19:32:18 +00:00
drivers drivers/pc80/tpm: add support for TPM emulator SwTPM 2.0 module 2019-06-27 10:04:17 +00:00
ec src/ec: Use 'include <stdlib.h>' when appropriate 2019-06-22 17:54:31 +00:00
include device: Tidy up add_more_links() 2019-06-28 19:32:18 +00:00
lib lib/gnat: Enable -Werror 2019-06-28 08:42:16 +00:00
mainboard asus/am1i-a: Enable UART according to CONFIG_UART_FOR_CONSOLE 2019-06-28 18:01:51 +00:00
northbridge device,nb/amd: Deduplicate add_more_links() 2019-06-28 19:30:09 +00:00
security security: Add memory subfolder 2019-06-27 10:02:04 +00:00
soc {soc,northbridge}/Kconfig: Remove unused CACHE_MRC_SIZE_KB 2019-06-28 19:20:09 +00:00
southbridge sb/amd/rs780: Remove dead assignment 2019-06-28 19:21:42 +00:00
superio nuvoton/early_serial: improve comments on serial pinmux settings 2019-06-22 11:39:12 +00:00
vendorcode add ctype.h header 2019-06-24 21:15:14 +00:00
Kconfig arch/x86/Kconfig: Hide the prefix option on all but BOOTBLOCK_NORMAL 2019-06-15 17:24:44 +00:00