Re: [PATCH 1/1 net-next] ipv4: ip_frag_queue function clean-up

From: David Miller
Date: Tue Nov 04 2014 - 15:12:19 EST


From: Fabian Frederick <fabf@xxxxxxxxx>
Date: Tue, 4 Nov 2014 20:41:37 +0100

> -remove unnecessary else after break
> -declare free_it sk_buff * only once (like prev and next)
>
> Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>

I disagree.

Declaring a local variable in it's inner-most scope is preferable
to moving it to the top level and making the job of the compiler
and the code auditor more difficult.

I'm not applying this, sorry.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/