On Wed, 4 Apr 2012, ron minnich wrote:

I think some aspects of 'if' patching are not working for me ...

static void intel_init_display(struct drm_device *dev)
{
        struct drm_i915_private *dev_priv = dev->dev_private;
        int i;

        if (0) { dev_priv = NULL;}
        if (0) i = 8;
}

@@
@@
-if (0) {...}
@@
statement S;
@@
-if (0) S;

No semicolon after the S.

julia

@@ -3,6 +3,6 @@ static void intel_init_display(struct dr
        struct drm_i915_private *dev_priv = dev->dev_private;
        int i;

-       if (0) { dev_priv = NULL;}
+
        if (0) i = 8;
}

_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to