]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: i2sbus: Deletion of unnecessary checks before the function call "release_and_fr...
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 2 Dec 2014 21:50:24 +0000 (22:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Dec 2014 06:59:04 +0000 (07:59 +0100)
commite4ca65017943784a9674bd17f8d6e41674ec134c
treeee926e9d9acaa1c8b93860a25ffc3bd8331df6e5
parentac456998d472d6c405430fbdb5d12d299d237e65
ALSA: i2sbus: Deletion of unnecessary checks 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/aoa/soundbus/i2sbus/core.c