diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-25 15:57:34 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:49 +1100 |
commit | e734ca6ed2bb99343fd32c369a7eb3679447b115 (patch) | |
tree | 9e83db5e2b0feedad8870051650d879fda707bd6 /alsa-pcm.c | |
parent | 18007ca500654b48011e8a8cf96c47b1a5aa3be7 (diff) |
Optimize CHK_ macros
No need to be using kasprintf in a debug macro!
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'alsa-pcm.c')
-rw-r--r-- | alsa-pcm.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -55,8 +55,7 @@ static int pcm_open(struct snd_pcm_substream *substream) stream = __avirt_stream_find_by_device(substream->pcm->device); audiopath = avirt_audiopath_get(stream->map); - CHK_NULL_V(audiopath, -EFAULT, "Cannot find Audio Path uid: '%s'!", - stream->map); + CHK_NULL_V(audiopath, "Cannot find Audio Path uid: '%s'!", stream->map); substream->private_data = audiopath; // Copy the hw params from the audiopath to the pcm |