• Sylvain Lemieux's avatar
    clk: lpc32xx: fix compilation warning · 8626556f
    Sylvain Lemieux authored
    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: default avatarSylvain 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: default avatarStephen Boyd <sboyd@codeaurora.org>
    8626556f
clk-lpc32xx.c 43.4 KB