summaryrefslogtreecommitdiffstats
path: root/drivers/tpm/tpm_tis_lpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tpm/tpm_tis_lpc.c')
-rw-r--r--drivers/tpm/tpm_tis_lpc.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud