projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dwc2 USB controller hangs with lan78xx
[platform/kernel/u-boot.git]
/
cmd
/
sf.c
diff --git
a/cmd/sf.c
b/cmd/sf.c
index
f971eec
..
84bb057
100644
(file)
--- a/
cmd/sf.c
+++ b/
cmd/sf.c
@@
-1,9
+1,8
@@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Command for accessing SPI flash.
*
* Copyright (C) 2008 Atmel Corporation
/*
* Command for accessing SPI flash.
*
* Copyright (C) 2008 Atmel Corporation
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
*/
#include <common.h>
@@
-287,7
+286,7
@@
static int do_spi_flash_read_write(int argc, char * const argv[])
}
buf = map_physmem(addr, len, MAP_WRBACK);
}
buf = map_physmem(addr, len, MAP_WRBACK);
- if (!buf) {
+ if (!buf
&& addr
) {
puts("Failed to map physical memory\n");
return 1;
}
puts("Failed to map physical memory\n");
return 1;
}