]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Nov 2014 09:44:33 +0000 (10:44 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 Nov 2014 12:45:23 +0000 (13:45 +0100)
commit606bb85295ec2e770a5f7962dad17fd0788b907a
tree1ccd31d0a0a5fb4173b4953c966239897bc1c0c2
parent0b4a7aa36c5335bffb9ace0d2c87cf177347183e
ALSA: hda: Deletion of unnecessary checks before two function calls

The functions kfree() and release_firmware() test whether their argument
is NULL and then return immediately. Thus the test around the call
is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_intel.c