mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
ALSA: snd-atmel-abdac: test wrong variable
After clk_get() pclk is checked second time instead of sample_clk check. Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7974150c85
commit
5ad57d20c9
@ -420,7 +420,7 @@ static int __devinit atmel_abdac_probe(struct platform_device *pdev)
|
||||
return PTR_ERR(pclk);
|
||||
}
|
||||
sample_clk = clk_get(&pdev->dev, "sample_clk");
|
||||
if (IS_ERR(pclk)) {
|
||||
if (IS_ERR(sample_clk)) {
|
||||
dev_dbg(&pdev->dev, "no sample clock\n");
|
||||
retval = PTR_ERR(pclk);
|
||||
goto out_put_pclk;
|
||||
|
Loading…
Reference in New Issue
Block a user