]> git.sur5r.net Git - u-boot/commit
stdio: remove useless strncpy
authorVincent Palatin <vpalatin@chromium.org>
Wed, 5 Dec 2012 14:46:32 +0000 (14:46 +0000)
committerTom Rini <trini@ti.com>
Tue, 11 Dec 2012 20:17:33 +0000 (13:17 -0700)
commit6a135efcd0f1a2e0f9e5f24fa7a0b578963c55aa
treea07380437093a2df9a4ba9e83785cb3394576842
parent75b3afc66532abcc7256933b3bcac712574bca2d
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>
common/stdio.c