]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/soc/soc-io.c
PTR_RET is now PTR_ERR_OR_ZERO(): Replace most.
[karo-tx-linux.git] / sound / soc / soc-io.c
index 8ca9ecc5ac575db17e8881c57abda2b531531f17..122c0c18b9dd286ce6322f3ce67bcd070387c913 100644 (file)
@@ -158,7 +158,7 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
                return -EINVAL;
        }
 
-       return PTR_RET(codec->control_data);
+       return PTR_ERR_OR_ZERO(codec->control_data);
 }
 EXPORT_SYMBOL_GPL(snd_soc_codec_set_cache_io);
 #else