Thread (6 messages) flat view 6 messages, 2 authors, 2021-08-12

Re: [PATCH iproute2] lib: bpf_glue: remove useless assignment

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-08-12 16:27:02

On Thu, 12 Aug 2021 11:01:42 +0200
Andrea Claudi [off-list ref] wrote:
On Wed, Aug 11, 2021 at 09:08:15AM -0700, Stephen Hemminger wrote:
quoted
It is bad style in C to do assignment in a conditional.
It causes errors, and is not anymore efficient.
  
I agree with you.

There is a large number of similar assignments in other parts of the
code; I can work on a treewide patch to address them all, if you think
it's a good idea.
I am looking into this, checkpatch seems to find them
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help