/// The address of a variable or field is likely always to be non-zero. /// // Confidence: High // Copyright: (C) 2012 Julia Lawall, INRIA/LIP6. GPLv2. // Copyright: (C) 2012 Gilles Muller, INRIA/LiP6. GPLv2. // URL: http://coccinelle.lip6.fr/ // Comments: // Options: --no-includes --include-headers virtual org virtual report virtual context @r@ expression x; statement S1,S2; position p; @@ *if@p (&x) S1 else S2 @script:python depends on org@ p << r.p; @@ cocci.print_main("test of a variable/field address",p) @script:python depends on report@ p << r.p; @@ msg = "ERROR: test of a variable/field address" coccilib.report.print_report(p[0],msg) > cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/rxrpc/local_event.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-12-20 22:02:18 +0800
committerDavid S. Miller <davem@davemloft.net>2016-12-20 14:22:49 -0500
commita763f78cea845c91b8d91f93dabf70c407635dc5 (patch)
tree9b2d4293e2ba1759a8ec7f272cf3df1783d48700 /net/rxrpc/local_event.c
parent7f7cd56c33937c6afa8a3d1f10a804c314e5b308 (diff)
RDS: use rb_entry()
To make the code clearer, use rb_entry() instead of container_of() to deal with rbtree. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/local_event.c')