Remove useless assignments
This commit is contained in:
parent
47c33b8d03
commit
7eb179069d
|
@ -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 {
|
||||
|
|
|
@ -884,7 +884,6 @@ DownstreamAddr *ClientHandler::get_downstream_addr(int &err,
|
|||
err = -1;
|
||||
return nullptr;
|
||||
}
|
||||
aff_idx = i;
|
||||
}
|
||||
|
||||
return addr;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue