mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
aic94xx: Get rid of redundant NULL check before release_firmware() call
release_firmware() checks for NULL pointers internally, so checking before calling the function is redundant. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
53c0ad522e
commit
ee51f4432e
@ -1228,8 +1228,7 @@ static int asd_seq_start_lseq(struct asd_ha_struct *asd_ha, int lseq)
|
||||
|
||||
int asd_release_firmware(void)
|
||||
{
|
||||
if (sequencer_fw)
|
||||
release_firmware(sequencer_fw);
|
||||
release_firmware(sequencer_fw);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user