summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/hda.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-07-09 19:04:28 +0300
committerTakashi Iwai <tiwai@suse.de>2025-07-11 10:55:38 +0300
commit691351de31684b98a7366b08cd278bb057b51fce (patch)
tree506a77b4fe19a900bc64d897a07e5861ba82f9da /sound/soc/codecs/hda.c
parentcabaf5908e586156d1d59f3fb8c51d2b169bc636 (diff)
downloadlinux-691351de31684b98a7366b08cd278bb057b51fce.tar.xz
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/hda.c')
-rw-r--r--sound/soc/codecs/hda.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/hda.c b/sound/soc/codecs/hda.c
index 126270ffd418..c8344e28df3d 100644
--- a/sound/soc/codecs/hda.c
+++ b/sound/soc/codecs/hda.c
@@ -250,7 +250,7 @@ static int hda_codec_probe(struct snd_soc_component *component)
complete_err:
hda_codec_unregister_dais(codec, component);
parse_pcms_err:
- if (driver->ops && driver->ops->remove)
+ if (driver->ops->remove)
driver->ops->remove(codec);
err:
snd_hda_codec_cleanup_for_unbind(codec);
@@ -280,7 +280,7 @@ static void hda_codec_remove(struct snd_soc_component *component)
hda_codec_unregister_dais(codec, component);
- if (driver->ops && driver->ops->remove)
+ if (driver->ops->remove)
driver->ops->remove(codec);
snd_hda_codec_cleanup_for_unbind(codec);