From 07d721688b8464662393f3b3136defbbad52be75 Mon Sep 17 00:00:00 2001 From: Peter Huewe Date: Tue, 29 Jan 2013 22:02:01 +0100 Subject: [PATCH] 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 Signed-off-by: Kent Yoder --- drivers/char/tpm/tpm_i2c_stm_st33.c | 2 -- 1 file changed, 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) 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__); -- 2.39.5