]> git.baikalelectronics.ru Git - kernel.git/commit
char: tpm: Deletion of unnecessary checks before the function call "tpm_dev_vendor_re...
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Nov 2014 13:44:15 +0000 (14:44 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Sat, 17 Jan 2015 13:00:06 +0000 (14:00 +0100)
commit93b4bb1dd73ec2a03beefa8b3d1808bffe393c55
treeb89d2c18beb54fdaec212e1f4d76d8e517f41c85
parent4a71c5a23e1d9090a50c903c32beb54e6feae12f
char: tpm: Deletion of unnecessary checks before the function call "tpm_dev_vendor_release"

The tpm_dev_vendor_release() 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: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_atmel.c
drivers/char/tpm/tpm_i2c_nuvoton.c