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>
This commit is contained in:
committed by
Kyösti Mälkki
parent
0eb4db185c
commit
a1e22b8192
@ -22,8 +22,10 @@
|
||||
#include <commonlib/sdhci.h>
|
||||
#include <device/pci.h>
|
||||
#include <device/pci_ops.h>
|
||||
#include "sd_mmc.h"
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "sd_mmc.h"
|
||||
#include "storage.h"
|
||||
|
||||
/* Initialize an SDHCI port */
|
||||
|
@ -26,7 +26,6 @@
|
||||
#include <endian.h>
|
||||
#include "sd_mmc.h"
|
||||
#include "storage.h"
|
||||
#include <string.h>
|
||||
#include <timer.h>
|
||||
|
||||
int sd_send_if_cond(struct storage_media *media)
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include "sdhci.h"
|
||||
#include "sd_mmc.h"
|
||||
#include "storage.h"
|
||||
#include <string.h>
|
||||
#include <timer.h>
|
||||
#include <commonlib/stdlib.h>
|
||||
|
||||
|
@ -19,9 +19,10 @@
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "sd_mmc.h"
|
||||
#include "storage.h"
|
||||
#include <string.h>
|
||||
|
||||
static uint32_t storage_write(struct storage_media *media, uint32_t start,
|
||||
uint64_t block_count, const void *src)
|
||||
|
Reference in New Issue
Block a user