lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 20 Jun 2016 17:48:44 -0700 From: Stephen Boyd <sboyd@...eaurora.org> To: Roman Volkov <v1ron@...l.ru> Cc: Arnd Bergmann <arnd@...db.de>, linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org, Michael Turquette <mturquette@...libre.com>, Roman Volkov <rvolkov@...os.org>, Tony Prisk <linux@...sktech.co.nz> Subject: Re: [PATCH v2 1/2] clk: vt8500: fix gcc-4.9 warnings On 06/08, Roman Volkov wrote: > From: Arnd Bergmann <arnd@...db.de> > > This fixes some false positive warnings we get with older compiler > versions: > > clk-vt8500.c: In function ‘wm8650_find_pll_bits’: > clk-vt8500.c:430:12: ‘best_div2’ may be used uninitialized in this function > clk-vt8500.c:429:12: ‘best_div1’ may be used uninitialized in this function > clk-vt8500.c:428:14: ‘best_mul’ may be used uninitialized in this function > clk-vt8500.c: In function ‘wm8750_find_pll_bits’: > clk-vt8500.c:509:12: ‘best_div2’ may be used uninitialized in this function > clk-vt8500.c:508:12: ‘best_div1’ may be used uninitialized in this function > clk-vt8500.c:507:14: ‘best_mul’ may be used uninitialized in this function > clk-vt8500.c: In function ‘wm8850_find_pll_bits’: > clk-vt8500.c:560:12: ‘best_div2’ may be used uninitialized in this function > clk-vt8500.c:559:12: ‘best_div1’ may be used uninitialized in this function > clk-vt8500.c:558:14: ‘best_mul’ may be used uninitialized in this function > > As the local variables are only use for temporaries, we can just > as well assign the final values directly, which also makes the > code slightly shorter. > > Signed-off-by: Arnd Bergmann <arnd@...db.de> > Signed-off-by: Roman Volkov <rvolkov@...os.org> > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Powered by blists - more mailing lists