From: Mauro Carvalho Chehab Date: Mon, 11 Oct 2010 20:39:06 +0000 (-0300) Subject: [media] saa7134: Fix lots os spaces at the wrong places X-Git-Tag: v2.6.37-rc1~64^2~139 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7e242baf73a284eff92444fb58af11439e3a22c;p=pandora-kernel.git [media] saa7134: Fix lots os spaces at the wrong places There are lots of checkpatch complains about: ERROR: space prohibited after that open parenthesis '(' ERROR: space prohibited after that open square bracket '[' ERROR: space prohibited before that close parenthesis ')' ERROR: space prohibited before that close square bracket ']' This script should fix all of them: for i in drivers/media/video/saa7164/*.[ch]; do cat $i|perl -ne 's/\[\ +(.*)/[$1/; s/\ +\]/$1\]/g; s/\(\ +(.*)/($1/g; s/\ +\)/$1)/g; print $_;' >a && mv a $i; done Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed