Commit 30bbafe3 authored by Jarkko Sakkinen's avatar Jarkko Sakkinen

tpm, tpm_infineon: remove useless snprintf() calls

The memory copy from rodata to stack is useless.
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: default avatarPeter Huewe <peterhuewe@gmx.de>
parent 124bdcf4
...@@ -397,7 +397,7 @@ static int tpm_inf_pnp_probe(struct pnp_dev *dev, ...@@ -397,7 +397,7 @@ static int tpm_inf_pnp_probe(struct pnp_dev *dev,
int vendorid[2]; int vendorid[2];
int version[2]; int version[2];
int productid[2]; int productid[2];
char chipname[20]; const char *chipname;
struct tpm_chip *chip; struct tpm_chip *chip;
/* read IO-ports through PnP */ /* read IO-ports through PnP */
...@@ -488,13 +488,13 @@ static int tpm_inf_pnp_probe(struct pnp_dev *dev, ...@@ -488,13 +488,13 @@ static int tpm_inf_pnp_probe(struct pnp_dev *dev,
switch ((productid[0] << 8) | productid[1]) { switch ((productid[0] << 8) | productid[1]) {
case 6: case 6:
snprintf(chipname, sizeof(chipname), " (SLD 9630 TT 1.1)"); chipname = " (SLD 9630 TT 1.1)";
break; break;
case 11: case 11:
snprintf(chipname, sizeof(chipname), " (SLB 9635 TT 1.2)"); chipname = " (SLB 9635 TT 1.2)";
break; break;
default: default:
snprintf(chipname, sizeof(chipname), " (unknown chip)"); chipname = " (unknown chip)";
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment