From patchwork Sat Nov 3 00:27:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot,05/17] stdio: remove useless strncpy From: Simon Glass X-Patchwork-Id: 196793 Message-Id: <1351902453-27956-6-git-send-email-sjg@chromium.org> To: U-Boot Mailing List Cc: Tom Rini , Vincent Palatin Date: Fri, 2 Nov 2012 17:27:21 -0700 From: Vincent Palatin The name is already copied when we memopy the whole structure. Signed-off-by: Vincent Palatin Commit-Ready: Vincent Palatin Signed-off-by: Simon Glass --- 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; }