> 25 окт. 2013 г., в 0:51, Alexander Aring <alex.ar...@gmail.com> написал(а): > > Signed-off-by: Alexander Aring <alex.ar...@gmail.com> > Reviewed-by: Werner Almesberger <wer...@almesberger.net> > --- > net/ieee802154/6lowpan.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c > index e15b101..09350f1 100644 > --- a/net/ieee802154/6lowpan.c > +++ b/net/ieee802154/6lowpan.c > @@ -440,7 +440,6 @@ lowpan_uncompress_udp_header(struct sk_buff *skb, struct > udphdr *uh) > default: > pr_debug("ERROR: unknown UDP format\n"); > goto err; > - break; > } >
It's not an unnecessary, it's let say a "good coding practice" to have a break for every case including default. > pr_debug("uncompressed UDP ports: src = %d, dst = %d\n", > -- > 1.8.4.1 > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel