projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0af2f6b
)
ALSA: hda/tas2781: Remove unnecessary NULL check before release_firmware()
author
Chen Ni
<nichen@iscas.ac.cn>
Mon, 7 Apr 2025 06:19:39 +0000
(14:19 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 7 Apr 2025 07:18:54 +0000
(09:18 +0200)
release_firmware() checks for NULL pointers internally.
Remove unneeded NULL check for fmw here.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://patch.msgid.link/20250407061939.2771803-1-nichen@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/tas2781_hda_spi.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/tas2781_hda_spi.c
b/sound/pci/hda/tas2781_hda_spi.c
index 399f2e4c3b62b41b549660a92f91a98a0d073043..25175ff4b3aaa55d4abba61fc280904974624594 100644
(file)
--- a/
sound/pci/hda/tas2781_hda_spi.c
+++ b/
sound/pci/hda/tas2781_hda_spi.c
@@
-1003,8
+1003,7
@@
static void tasdev_fw_ready(const struct firmware *fmw, void *context)
*/
out:
- if (fmw)
- release_firmware(fmw);
+ release_firmware(fmw);
pm_runtime_mark_last_busy(tas_hda->priv->dev);
pm_runtime_put_autosuspend(tas_hda->priv->dev);
}