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)
commit2dfc2deda2c9b1def7dc9399623479b69cd9f7ff
treeb89d2c18beb54fdaec212e1f4d76d8e517f41c85
parent9fd8e5a25ecb0febfad321c04478a9d8b8b247f7
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