Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264513
b: refs/heads/master
c: 403d1d0
h: refs/heads/master
i:
  264511: 05e3124
v: v3
  • Loading branch information
Stefan Berger authored and James Morris committed Aug 23, 2011
1 parent 7a45a75 commit 33bc5be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ad346c62ae91e6376fb9d199ef8557b0c814209
refs/heads/master: 403d1d0319ad73b5ccf251745af4c7000331a76b
3 changes: 3 additions & 0 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,9 @@ ssize_t tpm_show_durations(struct device *dev, struct device_attribute *attr,
{
struct tpm_chip *chip = dev_get_drvdata(dev);

if (chip->vendor.duration[TPM_LONG] == 0)
return 0;

return sprintf(buf, "%d %d %d [%s]\n",
jiffies_to_usecs(chip->vendor.duration[TPM_SHORT]),
jiffies_to_usecs(chip->vendor.duration[TPM_MEDIUM]),
Expand Down

0 comments on commit 33bc5be

Please sign in to comment.