[PATCH 1/4] MIPS: mach-ar231x: Fix uninitialized variable
Sascha Hauer
s.hauer at pengutronix.de
Wed Jan 29 15:39:58 EST 2014
On Wed, Jan 29, 2014 at 10:21:46PM +0400, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
Applied all, thanks.
Are you running sparse or how did you find all these?
Sascha
> ---
> arch/mips/mach-ar231x/board.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/mips/mach-ar231x/board.c b/arch/mips/mach-ar231x/board.c
> index f1b876f..8bd1787 100644
> --- a/arch/mips/mach-ar231x/board.c
> +++ b/arch/mips/mach-ar231x/board.c
> @@ -111,7 +111,7 @@ static u16
> ar231x_cksum16(u8 *data, int size)
> {
> int i;
> - u16 sum;
> + u16 sum = 0;
>
> for (i = 0; i < size; i++)
> sum += data[i];
> --
> 1.8.3.2
>
>
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list