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)
commitf0acd28c87ad2a5d1b40403fdd5defda2961b2a1
tree1ccd31d0a0a5fb4173b4953c966239897bc1c0c2
parentb8eca77e54525c818f35f51afb64fc13205443a3
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