Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757032AbbKUWAU (ORCPT ); Sat, 21 Nov 2015 17:00:20 -0500 Received: from s1.neomailbox.net ([5.148.176.57]:24878 "EHLO s1.neomailbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbbKUWAS (ORCPT ); Sat, 21 Nov 2015 17:00:18 -0500 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Cc: SF Markus Elfring , Antonio Quartulli , "David S. Miller" , Simon Wunderlich , netdev@vger.kernel.org, Julia Lawall , kernel-janitors@vger.kernel.org, LKML Subject: Re: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: Less checks in batadv_tvlv_unicast_send() Date: Sun, 22 Nov 2015 05:47:11 +0800 Message-ID: <9988401.mi5Gfk0igO@voltaire> In-Reply-To: <5648463F.3070403@users.sourceforge.net> References: <5307CAA2.8060406@users.sourceforge.net> <56484502.8000206@users.sourceforge.net> <5648463F.3070403@users.sourceforge.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3115496.lf9YDrhiNn"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1716 Lines: 50 --nextPart3115496.lf9YDrhiNn Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Sunday, November 15, 2015 09:45:51 SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 15 Nov 2015 09:00:42 +0100 > > * Let us return directly if a call of the batadv_orig_hash_find() function > returned a null pointer. > > * Omit the initialisation for the variable "skb" at the beginning. > > * Replace an assignment by a call of the kfree_skb() function > and delete the affected variable "ret" then. > > Signed-off-by: Markus Elfring > --- > net/batman-adv/main.c | 15 +++++---------- > 1 file changed, 5 insertions(+), 10 deletions(-) Applied in revision 5a878b8. Thanks, Marek --nextPart3115496.lf9YDrhiNn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJWUOZfAAoJEFNVTo/uthzAmIIIAIhojBp2a/my4W/0Q1Q5mhMr ZlWxOIdgKhWPsYJ/OGPNEgpLHa543ItCCyiF0lf4N3NUEvhCoMmLJhOWqS82KoUM X7oxaBJe4hjIOWkNSozWWYvERt+FlBUBUOQyWMxoEmnRvYcdyRG0DuB1s1tyWu88 1KqGJY8n1a8ogQim3sBCsmMNZyF33W/5t26cyogrZjiKwheA8K0BX92pjjgxY/0J OzOhCNHn0O+bI3B/n9teKM80ZWbp74ffiChHl/v+Nf/K2U2fySiHnaRSSb7z/YjG meknJjGKc51xb+RkAt8oVtPnj/hYv1IS9PL0vo9C+fNiqrRytOs1jFP7XJ8yIyM= =Wl4b -----END PGP SIGNATURE----- --nextPart3115496.lf9YDrhiNn-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/