Skip to content

Commit

Permalink
ASoC: wm0010: Delete an error message for a failed memory allocation …
Browse files Browse the repository at this point in the history
…in wm0010_boot()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
elfring authored and broonie committed Nov 27, 2017
1 parent 4fbd8d1 commit 316c85c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,11 +655,8 @@ static int wm0010_boot(struct snd_soc_codec *codec)
ret = -ENOMEM;
len = pll_rec.length + 8;
out = kzalloc(len, GFP_KERNEL | GFP_DMA);
if (!out) {
dev_err(codec->dev,
"Failed to allocate RX buffer\n");
if (!out)
goto abort;
}

img_swap = kzalloc(len, GFP_KERNEL | GFP_DMA);
if (!img_swap)
Expand Down

0 comments on commit 316c85c

Please sign in to comment.