From: Linus Torvalds Date: Mon, 20 Oct 2008 21:16:43 +0000 (-0700) Subject: i915: cleanup coding horrors in i915_gem_gtt_pwrite() X-Git-Tag: v2.6.28-rc1~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b7530cc329eb036cfa589930c270e85031f554c;p=pandora-kernel.git i915: cleanup coding horrors in i915_gem_gtt_pwrite() Yes, this will probably be switched over to a cleaner model anyway, but in the meantime I don't want to see the 'unused variable' warnings that come from the disgusting #ifdef code. Make the special case be a nice inlien function of its own, clean up the code, and make the warning go away. I wish people didn't write code that gets (valid) warnings from the compiler, but I'll limit my fixes to code that I actually care about (in this case just because I see the warning and it annoys me). Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed