Skip to content

Commit

Permalink
ALSA: hda/tas2781: Remove unnecessary NULL check before release_firmw…
Browse files Browse the repository at this point in the history
…are()

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>
  • Loading branch information
Chen Ni authored and Takashi Iwai committed Apr 7, 2025
1 parent 0af2f6b commit 120305a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sound/pci/hda/tas2781_hda_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 120305a

Please sign in to comment.