Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1593538 > unrolled thread
| Started by | Pablo Neira Ayuso <pablo@netfilter.org> |
|---|---|
| First post | 2017-03-06 18:10 +0100 |
| Last post | 2017-03-06 18:10 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] netfilter: remove redundant check on ret being non-zero Pablo Neira Ayuso <pablo@netfilter.org> - 2017-03-06 18:10 +0100
| From | Pablo Neira Ayuso <pablo@netfilter.org> |
|---|---|
| Date | 2017-03-06 18:10 +0100 |
| Subject | Re: [PATCH] netfilter: remove redundant check on ret being non-zero |
| Message-ID | <ti4iZ-2PO-1@gated-at.bofh.it> |
On Tue, Feb 28, 2017 at 11:31:15AM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> ret is initialized to zero and if it is set to non-zero in the
> xt_entry_foreach loop then we exit via the out_free label. Hence
> the check for ret being non-zero is redundant and can be removed.
>
> Detected by CoverityScan, CID#1357132 ("Logically Dead Code")
Applied, thanks.
Back to top | Article view | linux.kernel
csiph-web