[patch 1/2] drivers/gpu/drm/i915: remove duplicate structure field initialization

2010-07-20 Thread akpm
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

[patch 1/2] drivers/gpu/drm/i915: remove duplicate structure field initialization

2010-07-20 Thread a...@linux-foundation.org
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