]> git.proxmox.com Git - swtpm.git/commitdiff
swtpm: Remove assignment to unused variable
authorStefan Berger <stefanb@linux.ibm.com>
Wed, 25 May 2022 18:19:36 +0000 (14:19 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 25 May 2022 22:54:58 +0000 (18:54 -0400)
Remove the assigment to 'res' since the subsequent code path does not
need it.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
src/swtpm/ctrlchannel.c

index d50c6f3c5bcb4c9dd41f3e9bfc2f78e00d6e6d51..1d645f2ba99fa36f6d07b3e37b79588971f1ed7c 100644 (file)
@@ -230,7 +230,6 @@ static int ctrlchannel_receive_state(ptm_setstate *pss, ssize_t n, int fd)
         if (remain) {
             n = read_eintr(fd, pss->u.req.data, sizeof(pss->u.req.data));
             if (n < 0) {
-                res = TPM_IOERROR;
                 close(fd);
                 fd = -1;
                 goto err_fd_broken;