aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorRuben Roy <rubenroy2005@gmail.com>2017-09-26 13:58:57 +0000
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2017-10-18 18:28:49 +0300
commit2d56c71835acc9d69b402f7027091920306daf83 (patch)
tree5baa39f9985b524e8d1ba42229abdb4c81d86ff3 /drivers/char
parenttpm: fix type of a local variables in tpm_tis_spi.c (diff)
downloadlinux-dev-2d56c71835acc9d69b402f7027091920306daf83.tar.xz
linux-dev-2d56c71835acc9d69b402f7027091920306daf83.zip
tpm: fix duplicate inline declaration specifier
This commit fixes the duplicate inline declaration specifier in tpm2_rc_value which caused a warning Signed-off-by: Ruben Roy <rubenroy2005@gmail.com> Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tpm/tpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index b50e92fbca31..528cffbd49d3 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -544,7 +544,7 @@ static inline void tpm_add_ppi(struct tpm_chip *chip)
}
#endif
-static inline inline u32 tpm2_rc_value(u32 rc)
+static inline u32 tpm2_rc_value(u32 rc)
{
return (rc & BIT(7)) ? rc & 0xff : rc;
}