hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
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);