From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: [PATCH 3/3] batman-adv: Less function calls in batadv_is_ap_isolated() after error detection Date: Fri, 20 Nov 2015 11:56:39 +0100 Message-ID: <564EFC67.7050307@users.sourceforge.net> 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> Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Marek Lindner , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, The list for a Better Approach To Mobile Ad-hoc Networking , kernel-janitors-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, LKML , Julia Lawall , "David S. Miller" To: Antonio Quartulli Return-path: In-Reply-To: <564EDE1D.7070809-x4xJYDvStAgysxA8WJXlww@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: b.a.t.m.a.n-bounces-ZwoEplunGu2X36UT3dwllkB+6BGkLq7r@public.gmane.org Sender: "B.A.T.M.A.N" List-Id: netdev.vger.kernel.org >> -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