hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/hda/hdac_regmap.c
....@@ -597,10 +597,9 @@
597597 */
598598 void snd_hdac_regmap_sync(struct hdac_device *codec)
599599 {
600
- if (codec->regmap) {
601
- mutex_lock(&codec->regmap_lock);
600
+ mutex_lock(&codec->regmap_lock);
601
+ if (codec->regmap)
602602 regcache_sync(codec->regmap);
603
- mutex_unlock(&codec->regmap_lock);
604
- }
603
+ mutex_unlock(&codec->regmap_lock);
605604 }
606605 EXPORT_SYMBOL_GPL(snd_hdac_regmap_sync);