]> git.karo-electronics.de Git - linux-beck.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)
commit492a7ea0a6d3cc9c16ad5f8af832ed4278225b2e
treeee926e9d9acaa1c8b93860a25ffc3bd8331df6e5
parent5c34fdf48b9522ca87372b1fae19de8f93ffd130
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