From c4b93ea57d1ee8a886cf772ec824ad8f0c11f79f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 4 Jun 2021 10:12:43 +0200 Subject: [PATCH] CLEAUNUP: quic: Usage of a useless variable in qc_treat_rx_pkts() The usage of a variable is unnecessary here. --- src/xprt_quic.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 033755869..cb00c02fd 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2468,13 +2468,7 @@ int qc_treat_rx_pkts(struct quic_enc_level *el, struct quic_conn_ctx *ctx) QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt); } else { - int drop; - - drop = 0; - if (!qc_parse_pkt_frms(pkt, ctx, el)) - drop = 1; - - if (drop) { + if (!qc_parse_pkt_frms(pkt, ctx, el)) { /* Drop the packet */ TRACE_PROTO("packet parsing failed -> dropped", QUIC_EV_CONN_ELRXPKTS, ctx->conn, pkt);