Skip to content
Snippets Groups Projects
Commit 747d35bd authored by Peter Huewe's avatar Peter Huewe Committed by Peter Huewe
Browse files

tpm/tpm_ppi: Do not compare strcmp(a,b) == -1


Depending on the implementation strcmp might return the difference between
two strings not only -1,0,1 consequently
 if (strcmp (a,b) == -1)
might lead to taking the wrong branch

-> compare with < 0  instead,
which in any case is more canonical.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
parent 38fd2c20
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment