From: Tapasweni Pathak Date: Sun, 26 Oct 2014 15:08:32 +0000 (+0530) Subject: staging: dgap: Use unsigned for loop index X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~881 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac2f46c365e655dd2c366f69c609febc4ac310fd;p=pandora-kernel.git staging: dgap: Use unsigned for loop index The following semantic patch is used to do this @r exists@ // find anything that might decrement the variable identifier i; expression E; position p; @@ int i@p; ... ( &i | i-- | --i | i-=E | i+=E ) @x disable decl_init@ identifier r.i; expression E; position p1 != r.p; @@ ( volatile int i = 0; | volatile int i; | + unsigned int i@p1 = 0; | + unsigned int i@p1; ) <... when != i = E ( i = 0 | i = 1 ) ...> Signed-off-by: Tapasweni Pathak Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed