mirror of
https://github.com/stefanberger/swtpm.git
synced 2026-01-16 14:32:06 +00:00
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:
parent
da521f048b
commit
3df8cbf91b
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user