]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
i915: cleanup coding horrors in i915_gem_gtt_pwrite()
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 21:16:43 +0000 (14:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 21:16:43 +0000 (14:16 -0700)
commit9b7530cc329eb036cfa589930c270e85031f554c
tree3d8fad63c228e988a65b344be42ba9e0c7ed8e56
parent1ae87786800b5e0411847974b211797b6ada63c4
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 <torvalds@linux-foundation.org>
drivers/gpu/drm/i915/i915_gem.c