Remove useless assignments

This commit is contained in:
Tatsuhiro Tsujikawa 2021-11-05 22:51:36 +09:00
parent 47c33b8d03
commit 7eb179069d
3 changed files with 1 additions and 6 deletions

View File

@ -654,8 +654,6 @@ int nghttp2_frame_unpack_goaway_payload2(nghttp2_goaway *frame,
var_gift_payloadlen = 0;
}
payloadlen -= var_gift_payloadlen;
if (!var_gift_payloadlen) {
var_gift_payload = NULL;
} else {

View File

@ -884,7 +884,6 @@ DownstreamAddr *ClientHandler::get_downstream_addr(int &err,
err = -1;
return nullptr;
}
aff_idx = i;
}
return addr;

View File

@ -195,9 +195,7 @@ void qlog_write(void *user_data, uint32_t flags, const void *data,
void Http3Upstream::qlog_write(const void *data, size_t datalen, bool fin) {
assert(qlog_fd_ != -1);
ssize_t nwrite;
while ((nwrite = write(qlog_fd_, data, datalen)) == -1 && errno == EINTR)
while (write(qlog_fd_, data, datalen) == -1 && errno == EINTR)
;
if (fin) {