From: Vincent Palatin <[email protected]>

The name is already copied when we memopy the whole structure.

Signed-off-by: Vincent Palatin <[email protected]>

Commit-Ready: Vincent Palatin <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
---
 common/stdio.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/common/stdio.c b/common/stdio.c
index 605ff3f..c7a323f 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;
 }
-- 
1.7.7.3

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to