]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: fix buffer type in tpm_transmit_cmd
authorWinkler, Tomas <tomas.winkler@intel.com>
Mon, 5 Mar 2018 12:48:26 +0000 (14:48 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 23 Mar 2018 08:18:06 +0000 (10:18 +0200)
commitd3cd54d0b8e0ddc5c748ff35669c8cc26cc1594f
tree71d507a2eab993e70c2c7d4ba64dfa874777d992
parent76cde9e4b01d135668bf3baf9eb2cef55bc6d7a5
tpm: fix buffer type in tpm_transmit_cmd

1. The buffer cannot be const as it is used both for send and receive.
2. Drop useless casting to u8 *, as this is already a
type of 'buf' parameter, it has just masked the 'const' issue.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h