lkml.org 
[lkml]   [2013]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ASoC: kirkwood-i2s: fix a compilation warning
On Mon, Jul 15, 2013 at 10:36:44AM +0200, Jean-Francois Moine wrote:
> In the function kirkwood_set_rate, when the rate cannot be satisfied
> by the internal nor by an external clock, the clock source in undefined:

> warning: ‘clks_ctrl’ may be used uninitialized in this function

> As the ALSA subsystem should never gives such a rate, this patch removes
> the check of the external clock pointer.

> - } else if (!IS_ERR(priv->extclk)) {
> + } else {

I'd really like to see an analysis explaining why this can never happen,
the driver explicitly supports running without extclk being provided.
Simply asserting that we should never get such a rate isn't really
enough detail...
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-07-15 18:21    [W:0.101 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site