X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Ftpm%2Ftpm_tis_lpc.c;h=d09f8cee05b0940ea32c7707e5aeb4a1e6d2e90e;hb=5633a296ebb970d0a6be839fb37eaf8a11aa35f8;hp=eecf18cbf920ebe7721bea11178b5dbf5068b095;hpb=5b9c79a81db80c3f9e50c77477957cd803429af8;p=u-boot diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c index eecf18cbf9..d09f8cee05 100644 --- a/drivers/tpm/tpm_tis_lpc.c +++ b/drivers/tpm/tpm_tis_lpc.c @@ -274,7 +274,7 @@ static u32 tis_senddata(const u8 * const data, u32 len) * changes to zero exactly after the last byte is fed into the * FIFO. */ - count = min(burst, len - offset - 1); + count = min((u32)burst, len - offset - 1); while (count--) tpm_write_byte(data[offset++], &lpc_tpm_dev[locality].data);