swtpm_cuse: no need to compare uint8_t locality with < 0.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2015-05-12 14:20:16 -04:00
parent da521f048b
commit 3df8cbf91b

View File

@ -664,7 +664,7 @@ static void ptm_ioctl(fuse_req_t req, int cmd, void *arg,
fuse_reply_ioctl_retry(req, &iov, 1, NULL, 0);
} else {
ptmloc_t *l = (ptmloc_t *)in_buf;
if (l->u.req.loc < 0 || l->u.req.loc > 4) {
if (l->u.req.loc > 4) {
res = TPM_BAD_LOCALITY;
} else {
res = 0;