linux_dsm_epyc7002/drivers/char/tpm/st33zp24
Colin Ian King f20b4f2245 tpm: st33zp24: remove redundant null check on chip
Currently chip is being dereferenced by the call to dev_get_drvdata
before it is being null checked, however, chip can never be null, so
this check is misleading and redundant. Remove it.

Detected by CoverityScan, CID#1357806 ("Dereference before null check")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Jarkko Sakkinen <jarkkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkkko.sakkinen@linux.intel.com>
2018-05-09 14:45:46 +03:00
..
i2c.c tpm/st33zp24: Switch to devm_acpi_dev_add_driver_gpios() 2017-06-19 02:33:22 +02:00
Kconfig tpm/st33zp24: Auto-select core module 2016-06-25 17:21:42 +03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
spi.c tpm/st33zp24: Switch to devm_acpi_dev_add_driver_gpios() 2017-06-19 02:33:22 +02:00
st33zp24.c tpm: st33zp24: remove redundant null check on chip 2018-05-09 14:45:46 +03:00
st33zp24.h tpm: drop 'locality' from struct tpm_vendor_specific 2016-06-25 17:26:35 +03:00