summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-05-11 19:59:14 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-05-18 07:41:24 +0000
commitb74f45e9c4ae7bb504986298df8da89b6f017e65 (patch)
tree04effedb79a947c3bc862181ce3162268e429ed0 /src/drivers
parentf769ee3e1b060ff94f8f087a810fb2c83e4e99fe (diff)
downloadcoreboot-b74f45e9c4ae7bb504986298df8da89b6f017e65.tar.xz
src: Remove unused 'include <string.h>'
Unused includes found using following commande: diff <(git grep -l '#include <string.h>' -- src/) <(git grep -l 'memcpy\|memmove\|memset\|memcmp\|memchr\|strdup\|strconcat\|strnlen\|strlen\|strchr\|strncpy\|strcpy\|strcmp\|strncmp\|strspn\|strcspn\|atol\|strrchr\|skip_atoi\|STRINGIFY' -- src/) |grep -v vendorcode |grep '<' Change-Id: Ibaeec213b6019dfa9c45e3424b38af0e094d0c51 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41242 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Wim Vervoorn <wvervoorn@eltan.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/pc80/rtc/mc146818rtc.c1
-rw-r--r--src/drivers/spi/adesto.c1
-rw-r--r--src/drivers/spi/amic.c1
-rw-r--r--src/drivers/spi/atmel.c1
-rw-r--r--src/drivers/spi/eon.c1
-rw-r--r--src/drivers/spi/gigadevice.c1
-rw-r--r--src/drivers/spi/macronix.c1
-rw-r--r--src/drivers/spi/spansion.c1
-rw-r--r--src/drivers/spi/sst.c1
-rw-r--r--src/drivers/spi/stmicro.c1
-rw-r--r--src/drivers/spi/winbond.c1
11 files changed, 0 insertions, 11 deletions
diff --git a/src/drivers/pc80/rtc/mc146818rtc.c b/src/drivers/pc80/rtc/mc146818rtc.c
index 832d4fda2f..79bb5eb34a 100644
--- a/src/drivers/pc80/rtc/mc146818rtc.c
+++ b/src/drivers/pc80/rtc/mc146818rtc.c
@@ -9,7 +9,6 @@
#include <option.h>
#include <pc80/mc146818rtc.h>
#include <rtc.h>
-#include <string.h>
#include <cbfs.h>
#include <security/vboot/vbnv.h>
#include <security/vboot/vbnv_layout.h>
diff --git a/src/drivers/spi/adesto.c b/src/drivers/spi/adesto.c
index 1006de730a..6538905681 100644
--- a/src/drivers/spi/adesto.c
+++ b/src/drivers/spi/adesto.c
@@ -7,7 +7,6 @@
#include <console/console.h>
#include <commonlib/helpers.h>
-#include <string.h>
#include <spi_flash.h>
#include <spi-generic.h>
diff --git a/src/drivers/spi/amic.c b/src/drivers/spi/amic.c
index 2929e85b8a..5e74616c88 100644
--- a/src/drivers/spi/amic.c
+++ b/src/drivers/spi/amic.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/atmel.c b/src/drivers/spi/atmel.c
index 448f9062bd..4dcc5b5bcf 100644
--- a/src/drivers/spi/atmel.c
+++ b/src/drivers/spi/atmel.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/eon.c b/src/drivers/spi/eon.c
index 6db2cd1f49..1212c6b607 100644
--- a/src/drivers/spi/eon.c
+++ b/src/drivers/spi/eon.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/gigadevice.c b/src/drivers/spi/gigadevice.c
index d1ab1a698a..6c5a167dee 100644
--- a/src/drivers/spi/gigadevice.c
+++ b/src/drivers/spi/gigadevice.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/macronix.c b/src/drivers/spi/macronix.c
index 9f918341b7..f3f7e2d24b 100644
--- a/src/drivers/spi/macronix.c
+++ b/src/drivers/spi/macronix.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/spansion.c b/src/drivers/spi/spansion.c
index fe55fe4652..fe0e265cd9 100644
--- a/src/drivers/spi/spansion.c
+++ b/src/drivers/spi/spansion.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/sst.c b/src/drivers/spi/sst.c
index 2d107dcee5..887380fdeb 100644
--- a/src/drivers/spi/sst.c
+++ b/src/drivers/spi/sst.c
@@ -8,7 +8,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/stmicro.c b/src/drivers/spi/stmicro.c
index 3477789942..4cd8c1b9a3 100644
--- a/src/drivers/spi/stmicro.c
+++ b/src/drivers/spi/stmicro.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include "spi_flash_internal.h"
diff --git a/src/drivers/spi/winbond.c b/src/drivers/spi/winbond.c
index c2b81f5388..d8d3cdc855 100644
--- a/src/drivers/spi/winbond.c
+++ b/src/drivers/spi/winbond.c
@@ -4,7 +4,6 @@
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
-#include <string.h>
#include <delay.h>
#include <lib.h>