diff options
author | Takashi Iwai <tiwai@suse.de> | 2025-07-09 18:04:28 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-07-11 09:55:38 +0200 |
commit | 691351de31684b98a7366b08cd278bb057b51fce (patch) | |
tree | 506a77b4fe19a900bc64d897a07e5861ba82f9da /sound/soc/codecs/hdac_hda.c | |
parent | cabaf5908e586156d1d59f3fb8c51d2b169bc636 (diff) |
ALSA: hda: Drop superfluous driver->ops NULL checks
After all conversions, driver->ops became a must in most places
(except for the codec power setup which might be called before binding
to the codec driver), hence we can get rid of the superfluous
driver->ops NULL checks, too.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250709160434.1859-26-tiwai@suse.de
Diffstat (limited to 'sound/soc/codecs/hdac_hda.c')
-rw-r--r-- | sound/soc/codecs/hdac_hda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/hdac_hda.c b/sound/soc/codecs/hdac_hda.c index 191cb8427664..afd8edf10fdc 100644 --- a/sound/soc/codecs/hdac_hda.c +++ b/sound/soc/codecs/hdac_hda.c @@ -531,7 +531,7 @@ static int hdac_hda_codec_probe(struct snd_soc_component *component) return 0; error_patch: - if (driver->ops && driver->ops->remove) + if (driver->ops->remove) driver->ops->remove(hcodec); error_regmap: snd_hdac_regmap_exit(hdev); @@ -560,7 +560,7 @@ static void hdac_hda_codec_remove(struct snd_soc_component *component) pm_runtime_disable(&hdev->dev); snd_hdac_ext_bus_link_put(hdev->bus, hlink); - if (driver->ops && driver->ops->remove) + if (driver->ops->remove) driver->ops->remove(codec); snd_hda_codec_cleanup_for_unbind(codec); |