/// 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) le id='header'> cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/trace/events/v4l2.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-01-07 09:33:34 +0300
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-01-21 01:43:42 +0200
commit63d762b88cb5510f2bfdb5112ced18cde867ae61 (patch)
tree59bd1832e251b5e0edc61b1b6fb4f4d448b57554 /include/trace/events/v4l2.h
parent49def1853334396f948dcb4cedb9347abb318df5 (diff)
platform/x86: mlx-platform: free first dev on error
There is an off-by-one error so we don't unregister priv->pdev_mux[0]. Also it's slightly simpler as a while loop instead of a for loop. Fixes: 58cbbee2391c ("x86/platform/mellanox: Introduce support for Mellanox systems platform") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Vadim Pasternak <vadimp@mellanox.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/trace/events/v4l2.h')