]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: es1688_lib: Deletion of an unnecessary check before the function call "release_...
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 21 Nov 2014 18:05:50 +0000 (19:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Nov 2014 19:07:13 +0000 (20:07 +0100)
commitfdc9044de855158199aaa34c661e5cb1a28c5dec
tree9cd4f78fd63af1796c99c58ea97b2563a5e4f3e5
parent563382371778800c11fa44024212eedddeeb54e3
ALSA: es1688_lib: Deletion of an unnecessary check before the function call "release_and_free_resource"

The release_and_free_resource() function tests whether its argument is NULL
and then returns 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/isa/es1688/es1688_lib.c