]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
cmd_md5sum.c: remove dead code / fix warning
authorJeroen Hofstee <jeroen@myspectrum.nl>
Sun, 15 Jun 2014 22:10:42 +0000 (00:10 +0200)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:19:07 +0000 (11:19 -0400)
commit9fb70f31fea14c7c1b5575cc71d562587d837ca8
tree9ce0edcd37b63f515d8a6d2b7be452b091db7a03
parent5c45f550601d5fc8358adfb5feec9e51bc46ee4a
cmd_md5sum.c: remove dead code / fix warning

commit ecd729500 "Add parameter to md5sum to save the md5 sum"
adds support to build a string to be saved in the env and tries
to zero end it with str_ptr = '\0'; This does actually set the
pointer to the end of the buffer itself to zero. Since the
string was already zero terminated by the sprintf before it,
just remove the line, preventing a clang warning.

cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
common/cmd_md5sum.c