kernel/sound/hda/hdac_regmap.c
.. .. @@ -597,10 +597,9 @@ 597 597 */ 598 598 void snd_hdac_regmap_sync(struct hdac_device *codec) 599 599 { 600 - if (codec->regmap) {601 - mutex_lock(&codec->regmap_lock);600 + mutex_lock(&codec->regmap_lock);601 + if (codec->regmap)602 602 regcache_sync(codec->regmap); 603 - mutex_unlock(&codec->regmap_lock);604 - }603 + mutex_unlock(&codec->regmap_lock);605 604 } 606 605 EXPORT_SYMBOL_GPL(snd_hdac_regmap_sync);