Skip to content

Commit

Permalink
char/tpm/tpm_i2c_stm_st33: remove dead assignment in tpm_st33_i2c_probe
Browse files Browse the repository at this point in the history
Err is never read before it is assigned again -> remove the dead
assigment.
Found with clang static analyzer

Signed-off-by: Peter Huewe <[email protected]>
Signed-off-by: Kent Yoder <[email protected]>
  • Loading branch information
PeterHuewe authored and Kent Yoder committed Feb 5, 2013
1 parent e02983c commit 07d7216
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/char/tpm/tpm_i2c_stm_st33.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,8 +642,6 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
struct tpm_chip *chip;
struct st33zp24_platform_data *platform_data;

err = 0;

if (client == NULL) {
pr_info("%s: i2c client is NULL. Device not accessible.\n",
__func__);
Expand Down

0 comments on commit 07d7216

Please sign in to comment.