Commit 9fd8e5a2 authored by Fabian Frederick's avatar Fabian Frederick Committed by Peter Huewe

tpm: remove unnecessary sizeof(u8)

sizeof(u8) is always 1.
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
parent 84eb186b
...@@ -635,13 +635,13 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -635,13 +635,13 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
} }
platform_data->tpm_i2c_buffer[0] = platform_data->tpm_i2c_buffer[0] =
kmalloc(TPM_BUFSIZE * sizeof(u8), GFP_KERNEL); kmalloc(TPM_BUFSIZE, GFP_KERNEL);
if (platform_data->tpm_i2c_buffer[0] == NULL) { if (platform_data->tpm_i2c_buffer[0] == NULL) {
err = -ENOMEM; err = -ENOMEM;
goto _tpm_clean_answer; goto _tpm_clean_answer;
} }
platform_data->tpm_i2c_buffer[1] = platform_data->tpm_i2c_buffer[1] =
kmalloc(TPM_BUFSIZE * sizeof(u8), GFP_KERNEL); kmalloc(TPM_BUFSIZE, GFP_KERNEL);
if (platform_data->tpm_i2c_buffer[1] == NULL) { if (platform_data->tpm_i2c_buffer[1] == NULL) {
err = -ENOMEM; err = -ENOMEM;
goto _tpm_clean_response1; goto _tpm_clean_response1;
......
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