mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
common: Move flash_perror() to flash.h
This function belongs more in flash.h than common.h so move it. Also remove the space before the bracket in some calls. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#include <cli.h>
|
||||
#include <command.h>
|
||||
#include <console.h>
|
||||
#include <flash.h>
|
||||
#include <hash.h>
|
||||
#include <mapmem.h>
|
||||
#include <watchdog.h>
|
||||
@@ -339,7 +340,7 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
|
||||
rc = flash_write((char *)src, (ulong)dst, count * size);
|
||||
if (rc != 0) {
|
||||
flash_perror (rc);
|
||||
flash_perror(rc);
|
||||
unmap_sysmem(src);
|
||||
unmap_sysmem(dst);
|
||||
return (1);
|
||||
|
Reference in New Issue
Block a user