lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <EFDF4460-F8D0-4721-82F1-ABC3D5F75FDA@gmail.com>
Date:	Fri, 25 Oct 2013 07:28:28 +0400
From:	Alexander Smirnov <alex.bluesman.smirnov@...il.com>
To:	Alexander Aring <alex.aring@...il.com>
Cc:	"linux-zigbee-devel@...ts.sourceforge.net" 
	<linux-zigbee-devel@...ts.sourceforge.net>,
	"werner@...esberger.net" <werner@...esberger.net>,
	"dbaryshkov@...il.com" <dbaryshkov@...il.com>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
	Alexander Aring <alex.aring@...il.com>
Subject: Re: [PATCH net-next 5/5] 6lowpan: remove unecessary break


> 25 окт. 2013 г., в 0:51, Alexander Aring <alex.aring@...il.com> написал(а):
> 
> Signed-off-by: Alexander Aring <alex.aring@...il.com>
> Reviewed-by: Werner Almesberger <werner@...esberger.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
> 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ