tpm: fix duplicate inline declaration specifier
authorRuben Roy <rubenroy2005@gmail.com>
Tue, 26 Sep 2017 13:58:57 +0000 (13:58 +0000)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 18 Oct 2017 15:28:49 +0000 (18:28 +0300)
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>
drivers/char/tpm/tpm.h

index b50e92fbca31fdf59d8439d9d8fb5fe2152711c7..528cffbd49d376603eaf80ccb0a4865f0c742d0b 100644 (file)
@@ -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;
 }