diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2019-03-18 22:49:36 +0100 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-03-20 20:27:51 +0000 |
commit | a1e22b8192d5fc85995a41d0961c25293ba4391f (patch) | |
tree | 7b7dbc885d3ac99fe029cf0961eda1052e753dc1 /src/southbridge/amd | |
parent | 0eb4db185cfef44ddfdbd91d4fe69a48c127fa84 (diff) |
src: Use 'include <string.h>' when appropriate
Drop 'include <string.h>' when it is not used and
add it when it is missing.
Also extra lines removed, or added just before local includes.
Change-Id: Iccac4dbaa2dd4144fc347af36ecfc9747da3de20
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31966
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/amd')
-rw-r--r-- | src/southbridge/amd/agesa/hudson/spi.c | 1 | ||||
-rw-r--r-- | src/southbridge/amd/amd8111/lpc.c | 2 | ||||
-rw-r--r-- | src/southbridge/amd/cimx/sb800/spi.c | 1 | ||||
-rw-r--r-- | src/southbridge/amd/common/amd_pci_util.c | 1 | ||||
-rw-r--r-- | src/southbridge/amd/sb700/spi.c | 1 |
5 files changed, 1 insertions, 5 deletions
diff --git a/src/southbridge/amd/agesa/hudson/spi.c b/src/southbridge/amd/agesa/hudson/spi.c index 76c587779a..9c546c5c40 100644 --- a/src/southbridge/amd/agesa/hudson/spi.c +++ b/src/southbridge/amd/agesa/hudson/spi.c @@ -14,7 +14,6 @@ */ #include <stdint.h> #include <stdlib.h> -#include <string.h> #include <device/mmio.h> #include <console/console.h> #include <spi_flash.h> diff --git a/src/southbridge/amd/amd8111/lpc.c b/src/southbridge/amd/amd8111/lpc.c index 469c9368da..c4a7896ca7 100644 --- a/src/southbridge/amd/amd8111/lpc.c +++ b/src/southbridge/amd/amd8111/lpc.c @@ -29,7 +29,7 @@ #include <cpu/amd/powernow.h> #endif #include <stdlib.h> -#include <string.h> + #include "amd8111.h" #define NMI_OFF 0 diff --git a/src/southbridge/amd/cimx/sb800/spi.c b/src/southbridge/amd/cimx/sb800/spi.c index d6eb1e22b7..ffda0a8ea4 100644 --- a/src/southbridge/amd/cimx/sb800/spi.c +++ b/src/southbridge/amd/cimx/sb800/spi.c @@ -14,7 +14,6 @@ */ #include <stdint.h> #include <stdlib.h> -#include <string.h> #include <device/mmio.h> #include <console/console.h> #include <spi_flash.h> diff --git a/src/southbridge/amd/common/amd_pci_util.c b/src/southbridge/amd/common/amd_pci_util.c index 8bb2e0e4ef..103db988ef 100644 --- a/src/southbridge/amd/common/amd_pci_util.c +++ b/src/southbridge/amd/common/amd_pci_util.c @@ -17,7 +17,6 @@ #include <device/pci.h> #include <arch/io.h> #include <device/pci_ops.h> -#include <string.h> #include "amd_pci_util.h" #include <pc80/i8259.h> #include "amd_pci_int_defs.h" diff --git a/src/southbridge/amd/sb700/spi.c b/src/southbridge/amd/sb700/spi.c index 6b70d9d7fc..ee031e927f 100644 --- a/src/southbridge/amd/sb700/spi.c +++ b/src/southbridge/amd/sb700/spi.c @@ -16,7 +16,6 @@ #include <stdint.h> #include <stdlib.h> -#include <string.h> #include <device/mmio.h> #include <console/console.h> #include <spi-generic.h> |