clk: lpc32xx: fix compilation warning
authorSylvain Lemieux <slemieux@tycoint.com>
Tue, 23 Feb 2016 19:56:09 +0000 (14:56 -0500)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 3 Mar 2016 19:41:43 +0000 (11:41 -0800)
commit8626556f259331aac23c0e274aed24420f0e5403
tree24e0d15dfc717e775b2e1edc524267312af2d75b
parent0f4c7a138dfefb0ebdbaf56e3ba2acd2958a6605
clk: lpc32xx: fix compilation warning

Remove the following false positives compilation warning:
- drivers/clk/nxp/clk-lpc32xx.c: In function 'lpc32xx_clk_register':
  warning: 'hw' may be used uninitialized in this function [-Wmaybe-uninitialized]
- drivers/clk/nxp/clk-lpc32xx.c: In function 'clk_hclk_pll_round_rate':
  warning: 'p' may be used uninitialized in this function [-Wmaybe-uninitialized]
  warning: 'n' may be used uninitialized in this function [-Wmaybe-uninitialized]
  warning: 'm' may be used uninitialized in this function [-Wmaybe-uninitialized]

Tested using gcc version 4.7.3.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
[sboyd@codeaurora.org: Drop assignment of hw to NULL as return
silences it and is less likely to lead to hiding problems later]
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/nxp/clk-lpc32xx.c