]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: hda: Delete an unnecessary check before the function call "kobject_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 8 Jul 2015 19:26:02 +0000 (21:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Jul 2015 12:20:27 +0000 (14:20 +0200)
commit24d9b755ab2b44ec56723cd8e6b578985a1f1c76
tree2aaf36e9b9af46b71a779a110c2ec40ec0cc97a4
parent2a52feb1805aaef9ce356e5a5c64d498b65e7e81
ALSA: hda: Delete an unnecessary check before the function call "kobject_put"

The kobject_put() 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/hda/hdac_sysfs.c