[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4261316.fWqmHPy2zE@sven-edge>
Date: Fri, 28 Oct 2016 23:27:31 +0200
From: Sven Eckelmann <sven@...fation.org>
To: Joe Perches <joe@...ches.com>
Cc: Simon Wunderlich <sw@...onwunderlich.de>, davem@...emloft.net,
netdev@...r.kernel.org, b.a.t.m.a.n@...ts.open-mesh.org,
Antonio Quartulli <a@...table.cc>
Subject: Re: [PATCH 17/17] batman-adv: Avoid precedence issues in macros
On Freitag, 28. Oktober 2016 14:13:06 CEST Joe Perches wrote:
> On Thu, 2016-10-27 at 21:01 +0200, Simon Wunderlich wrote:
> > From: Sven Eckelmann <sven@...fation.org>
> >
> > It must be avoided that arguments to a macro are evaluated ungrouped (which
> > enforces normal operator precendence). Otherwise the result of the macro
> > is not well defined.
>
> Curiosity:
>
> in net/batman-adv/tp_meter.c
[...]
> orig_node = batadv_orig_hash_find(bat_priv, tp_vars->other_end);
> if (unlikely(!orig_node)) {
> err = BATADV_TP_REASON_DST_UNREACHABLE;
> tp_vars->reason = err;
> goto out;
> }
>
> primary_if = batadv_primary_if_get_selected(bat_priv);
> if (unlikely(!primary_if)) {
> err = BATADV_TP_REASON_DST_UNREACHABLE;
> goto out;
> }
>
> err is not used in the out block
>
> Is the last if block supposed to set tp_vars->reason to err?
This seems to be unrelated to this patch.
But yes, looks to me like it is missing. Do you want to propose a patch or
should I do? Just make sure you Cc Antonio Quartulli <a@...table.cc> (and of
course b.a.t.m.a.n@...ts.open-mesh.org). He is the original author of
33a3bb4a3345 ("batman-adv: throughput meter implementation").
Kind regards,
Sven
Download attachment "signature.asc" of type "application/pgp-signature" (802 bytes)
Powered by blists - more mailing lists