Thread (7 messages) flat view 7 messages, 2 authors, 2017-03-29

Re: [PATCH v2] netfilter: Clean up tests if NULL returned on failure

From: Jan Engelhardt <hidden>
Date: 2017-03-29 09:34:00
Also in: lkml, lvs-devel, netfilter-devel

On Wednesday 2017-03-29 11:15, SIMRAN SINGHAL wrote:
quoted
quoted
quoted
quoted
quoted
      dest = kzalloc(sizeof(struct ip_vs_dest), GFP_KERNEL);
-      if (dest == NULL)
+      if (!dest)
              return -ENOMEM;
But, according to me we should prefer !var over ( var ==NULL ) according to the
coding style
Where does it say that?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help