[PATCH 2/3] drivers/gpu/drm/i915: remove duplicate structure field initialization

2010-06-20 Thread Julia Lawall
From: Julia Lawall In each case, is_mobile is defined twice to 1. Drop one initialization. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ identifier I, s, fld; position p0,p; expression E; @@ struct I s =@p0 { ... .fld at p = E, ...}; @s@ ident

[PATCH 2/3] drivers/gpu/drm/i915: remove duplicate structure field initialization

2010-06-20 Thread Julia Lawall
From: Julia Lawall In each case, is_mobile is defined twice to 1. Drop one initialization. The semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ identifier I, s, fld; position p0,p; expression E; @@ struct I s =...@p0 { ... @p = E, ...}; @s@ ident