summaryrefslogtreecommitdiffstats
path: root/commands/mem.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-03-30 22:06:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-04-04 15:01:48 +0200
commit0fed2e4d323ae2d1d40043d7aad49644f66e3501 (patch)
tree398abd79b4c58d424f17c73f2511fbec80351320 /commands/mem.c
parent802a16476020bcedf5cd856e4e962970aa05b8fe (diff)
downloadbarebox-0fed2e4d323ae2d1d40043d7aad49644f66e3501.tar.gz
barebox-0fed2e4d323ae2d1d40043d7aad49644f66e3501.tar.xz
memcpy command: do not set read/write size
The memcpy command can be much faster if we do not copy in byte mode. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/mem.c')
-rw-r--r--commands/mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mem.c b/commands/mem.c
index 73bf9158da..8df5f0a89a 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -418,7 +418,7 @@ static int do_mem_cp(struct command *cmdtp, int argc, char *argv[])
char *sourcefile = DEVMEM;
char *destfile = DEVMEM;
int sourcefd, destfd;
- int mode = O_RWSIZE_1;
+ int mode = 0;
struct stat statbuf;
int ret = 0;