Re: variable used before it is set

From: David S. Miller
Date: Tue Jun 28 2005 - 04:32:38 EST


From: "d binderman" <dcb314@xxxxxxxxxxx>
Date: Tue, 28 Jun 2005 09:16:56 +0000

> net/bridge/netfilter/ebt_log.c(91): remark #592: variable "u" is used before
> its value is set
> printk(" IP tos=0x%02X, IP proto=%d", u.iph.tos,
> ^
> I agree with the compiler. Suggest code rework.

I added this bug, I'll fix it. It should use iph->tos
instead, and the entire 'u' array on the local stack
removed since there are then no more users of it.
-
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/