tpm: remove unnecessary sizeof(u8)
authorFabian Frederick <fabf@skynet.be>
Sun, 16 Nov 2014 10:03:24 +0000 (11:03 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Sat, 17 Jan 2015 13:00:06 +0000 (14:00 +0100)
sizeof(u8) is always 1.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
drivers/char/tpm/tpm_i2c_stm_st33.c

index 4669e37..5271b75 100644 (file)
@@ -635,13 +635,13 @@ tpm_st33_i2c_probe(struct i2c_client *client, const struct i2c_device_id *id)
        }
 
        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) {
                err = -ENOMEM;
                goto _tpm_clean_answer;
        }
        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) {
                err = -ENOMEM;
                goto _tpm_clean_response1;