commit | 81f517feec5e789b7bf5d4256d54e8da0b74a956 | [log] [tgz] |
---|---|---|
author | Stefan Berger <stefanb@linux.ibm.com> | Wed May 25 14:19:36 2022 -0400 |
committer | Stefan Berger <stefanb@us.ibm.com> | Wed May 25 18:54:58 2022 -0400 |
tree | 2b72138a18dc8036a89a7ebdf34c3b71268ccb86 | |
parent | f8e5cbd8096f540a8234a8fc7791a41f512f1b0f [diff] |
swtpm: Remove assignment to unused variable Remove the assigment to 'res' since the subsequent code path does not need it. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
diff --git a/src/swtpm/ctrlchannel.c b/src/swtpm/ctrlchannel.c index d50c6f3..1d645f2 100644 --- a/src/swtpm/ctrlchannel.c +++ b/src/swtpm/ctrlchannel.c
@@ -230,7 +230,6 @@ 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;