Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759690AbbKTK46 (ORCPT ); Fri, 20 Nov 2015 05:56:58 -0500 Received: from mout.web.de ([212.227.17.11]:64676 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758765AbbKTK4z (ORCPT ); Fri, 20 Nov 2015 05:56:55 -0500 Subject: Re: [B.A.T.M.A.N.] [PATCH 3/3] batman-adv: Less function calls in batadv_is_ap_isolated() after error detection To: Antonio Quartulli References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <56391CF7.9080400@users.sourceforge.net> <56391F73.7090605@users.sourceforge.net> <564EDE1D.7070809@meshcoding.com> Cc: The list for a Better Approach To Mobile Ad-hoc Networking , "David S. Miller" , Marek Lindner , Simon Wunderlich , netdev@vger.kernel.org, Julia Lawall , kernel-janitors@vger.kernel.org, LKML From: SF Markus Elfring X-Enigmail-Draft-Status: N1110 Message-ID: <564EFC67.7050307@users.sourceforge.net> Date: Fri, 20 Nov 2015 11:56:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <564EDE1D.7070809@meshcoding.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:z0rOLCYTj7E3GCYP64IulNGgJbyiukNwOICaoKS2K7b3NBv7t9i ov2zfVLNb3RXwEu91tdJD/gLC9AoZ3YU9hbqnCkbO/oIvbtNGhYvv/bb7F+e6SaJOviRBmU ke3pgmU6Lo8RWw974GntDIa1uDRfZhz768/LZBv8FrrXYYc2UzJr+PLV3HDfNBRzrT9H5xn 55/jyt22k1TMCL+BGxjug== X-UI-Out-Filterresults: notjunk:1;V01:K0:x9phqGJSjCs=:YyFdrHS0kNZ0HeBVClP9rC JPGa7fbZAEwqRWX4pWED7IKr/zrGe1MUvBhhRI26WYX60z5j4l/6/BzP07kqVzuc2QdyUyv2V /xPniIkJUfCYry20Z7s+HwXbd/zmRIrVDVU4z2+FosQ2WMXOfVJd5G72Zgp/gMvlLpwNzBRtx obeZYXTEmlmuUipPQxOo0vsAlt74RwzNXqaeRciEJ9JPe1iLNAcKWWQrWoDfP07DH+YvXSGGe MTFXfi8eOMsCDTIZjd9p7RvtYX2suWe7nX8e2nFaE5N7+8YNu3zSMa3yGjeW71UkHuvbQ4mg4 B1rRtTRfe0y9llFjB7/TkzfkXCgg13JNVuxQGRsE3yq6lNU7CP+kFIGgoP9vCrrdEWI6juS0m hw24IbMdwPdutwtJcx4EFgps31AMGl1lfEXmJiOgxSnc0wnxEZwvSkQjLpk4u+EOoKVEYKEvc TbDTF4LIFIJud6uxUDbbomaUhxBYDeM555A9eJsEzNByPSMuBY2xyast5TEhWyoQR4KTSUsND qLFoz++FJONb9EBODuGoDaaY3hgHrcqha0bVCalZVj+itIB3qVRrwuRwWp7kD5+5DSUBZy3sp S0ewU9eGltzjiJEnDFrdhUSTIKtf74YCRVb87p7szzB9l6N+UmzqwIBjf1EfMTmLb1f4PYWEd FIC0D3Gkemv+Po7UsLGrkU52QK2/prOUOuQTEvZM84BF0Ucci7F7jvG5xxgr317002AuZN/fd A3cnFHxTZqIckZXYU5oG1AEYWiSUhH1bCz7mRRvX9oti2LRvl5TlNy+WiC8xdJiiZBjR30ffd n1pDF9t Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1428 Lines: 41 >> -out: >> + batadv_tt_global_entry_free_ref(tt_global_entry); >> +local_entry_free: >> + batadv_tt_local_entry_free_ref(tt_local_entry); >> +vlan_free: >> batadv_softif_vlan_free_ref(vlan); >> - if (tt_global_entry) >> - batadv_tt_global_entry_free_ref(tt_global_entry); >> - if (tt_local_entry) >> - batadv_tt_local_entry_free_ref(tt_local_entry); >> return ret; > if you really want to make this codestyle change, I'd suggest you to go > through the whole batman-adv code and apply the same change where needed. Thanks for your interest in similar source code changes. I would prefer general acceptance for this specific update suggestion before I might invest further software development efforts for the affected network module. > It does not make sense to change the codestyle in one spot only. I agree in the way that I would be nice if more places can still be improved. > On top of that, by going through the batman-adv code you might agree > that the current style is actually not a bad idea. I got the impression that the current Linux coding style convention disagrees around the affected jump label selection to some degree, doesn't it? Regards, Markus -- 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/