summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-12-05 14:46:32 +0000
committerTom Rini <trini@ti.com>2012-12-11 13:17:33 -0700
commit6a135efcd0f1a2e0f9e5f24fa7a0b578963c55aa (patch)
treea07380437093a2df9a4ba9e83785cb3394576842 /common
parent75b3afc66532abcc7256933b3bcac712574bca2d (diff)
downloadu-boot-imx-6a135efcd0f1a2e0f9e5f24fa7a0b578963c55aa.zip
u-boot-imx-6a135efcd0f1a2e0f9e5f24fa7a0b578963c55aa.tar.gz
u-boot-imx-6a135efcd0f1a2e0f9e5f24fa7a0b578963c55aa.tar.bz2
stdio: remove useless strncpy
The name is already copied when we memcpy() the whole structure. This is because struct stdio_dev has this field: char name[16]; /* Device name */ So the data is inline, rather than being a pointer. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/stdio.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/stdio.c b/common/stdio.c
index 9f48e5f..97ff9cf 100644
--- a/common/stdio.c
+++ b/common/stdio.c
@@ -135,7 +135,6 @@ struct stdio_dev* stdio_clone(struct stdio_dev *dev)
return NULL;
memcpy(_dev, dev, sizeof(struct stdio_dev));
- strncpy(_dev->name, dev->name, 16);
return _dev;
}