Commit 07d72168 authored by Peter Huewe's avatar Peter Huewe Committed by Kent Yoder

char/tpm/tpm_i2c_stm_st33: remove dead assignment in tpm_st33_i2c_probe

Err is never read before it is assigned again -> remove the dead
assigment.
Found with clang static analyzer
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Signed-off-by: default avatarKent Yoder <key@linux.vnet.ibm.com>
parent e02983cf
...@@ -642,8 +642,6 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -642,8 +642,6 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
struct tpm_chip *chip; struct tpm_chip *chip;
struct st33zp24_platform_data *platform_data; struct st33zp24_platform_data *platform_data;
err = 0;
if (client == NULL) { if (client == NULL) {
pr_info("%s: i2c client is NULL. Device not accessible.\n", pr_info("%s: i2c client is NULL. Device not accessible.\n",
__func__); __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment