[U-Boot] [PATCH] env_ubi.c: Correct pointer error in env load
Joe Hershberger
joe.hershberger at gmail.com
Fri Oct 23 22:30:17 CEST 2015
On Fri, Oct 23, 2015 at 12:51 PM, Kevin Smith
<kevin.smith at elecsyscorp.com> wrote:
> The variable "buf" in this function is a char array, and the
> function ubi_volume_read is expecting a char *. In the call, the
> address of the pointer is being taken, incorrectly passing a
> char **. The compiler warning was being silenced by the cast.
> Remove the address operator and the cast.
>
> Signed-off-by: Kevin Smith <kevin.smith at elecsyscorp.com>
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Tom Rini <trini at konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list