Skip to content

Commit

Permalink
ASoC: core: Use PTR_RET function
Browse files Browse the repository at this point in the history
Used PTR_RET function instead of IS_ERR and PTR_ERR.
Patch found using coccinelle.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Alexandru Gheorghiu authored and Mark Brown committed Mar 26, 2013
1 parent e1328a8 commit 36300fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sound/soc/soc-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
return -EINVAL;
}

if (IS_ERR(codec->control_data))
return PTR_ERR(codec->control_data);

return 0;
return PTR_RET(codec->control_data);
}
EXPORT_SYMBOL_GPL(snd_soc_codec_set_cache_io);
#else
Expand Down

0 comments on commit 36300fd

Please sign in to comment.