tpm/tpm_i2c_stm_st33: Fix coccinelle warnings. Possible NULL pointer dereference

Author: Christophe Ricard <christophe.ricard@gmail.com>

If !client the kernel mays oops in dev_info when doing client->dev.

Reported-by: Peter Huewe 
Signed-off-by: Christophe Ricard 
Signed-off-by: Peter Huewe 
---
 drivers/char/tpm/tpm_i2c_stm_st33.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c
index e643c86..86203b0 100644
--- a/drivers/char/tpm/tpm_i2c_stm_st33.c
+++ b/drivers/char/tpm/tpm_i2c_stm_st33.c
@@ -720,7 +720,7 @@ tpm_stm_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
 	struct tpm_stm_dev *tpm_dev;
 
 	if (!client) {
-		dev_info(&client->dev, "%s: i2c client is NULL. Device not accessible.\n",
+		pr_info("%s: i2c client is NULL. Device not accessible.\n",
 			__func__);
 		return -ENODEV;
 	}