diff options
author | Peter Huewe <peterhuewe@gmx.de> | 2013-01-29 16:02:01 -0500 |
---|---|---|
committer | Kent Yoder <key@linux.vnet.ibm.com> | 2013-02-05 10:38:25 -0500 |
commit | 07d721688b8464662393f3b3136defbbad52be75 (patch) | |
tree | 68cae55bb48af40195fb29465b4034c3b70eb97c /drivers | |
parent | e02983cffc5e65069edee9892672e0aef9d9e2cd (diff) |
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: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/tpm/tpm_i2c_stm_st33.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_i2c_stm_st33.c b/drivers/char/tpm/tpm_i2c_stm_st33.c index e3d1887e5be4..b14c4b59958d 100644 --- a/drivers/char/tpm/tpm_i2c_stm_st33.c +++ b/drivers/char/tpm/tpm_i2c_stm_st33.c | |||
@@ -642,8 +642,6 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) | |||
642 | struct tpm_chip *chip; | 642 | struct tpm_chip *chip; |
643 | struct st33zp24_platform_data *platform_data; | 643 | struct st33zp24_platform_data *platform_data; |
644 | 644 | ||
645 | err = 0; | ||
646 | |||
647 | if (client == NULL) { | 645 | if (client == NULL) { |
648 | pr_info("%s: i2c client is NULL. Device not accessible.\n", | 646 | pr_info("%s: i2c client is NULL. Device not accessible.\n", |
649 | __func__); | 647 | __func__); |