diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2007-10-16 04:29:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:23 -0400 |
commit | 102a1a20d2b0a412d4cd4a9f047761f7925405ff (patch) | |
tree | 653195a9a501f0633f28c72ab17b01eb73f0d6e2 | |
parent | b738b990468d2acd5be7fe177fb750448bfa0b37 (diff) |
tgafb: remove a redundant non-mono test in mono imageblit
There is a test in tgafb_mono_imageblit() for a colour image with a fall-back
to cfb_imageblit(). The test is not necessary as the only caller, which is
tgafb_imageblit(), checks it too and only invokes this function for monochrome
images. It looks like a left-over from before some changes to
tgafb_imageblit().
Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: Antonino Daplas <adaplas@pol.net>
Cc: Jay Estabrook <Jay.Estabrook@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/tgafb.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/video/tgafb.c b/drivers/video/tgafb.c index 5539f4d9cb74..680642c089c9 100644 --- a/drivers/video/tgafb.c +++ b/drivers/video/tgafb.c | |||
@@ -637,15 +637,6 @@ tgafb_mono_imageblit(struct fb_info *info, const struct fb_image *image) | |||
637 | 637 | ||
638 | is8bpp = info->var.bits_per_pixel == 8; | 638 | is8bpp = info->var.bits_per_pixel == 8; |
639 | 639 | ||
640 | /* For copies that aren't pixel expansion, there's little we | ||
641 | can do better than the generic code. */ | ||
642 | /* ??? There is a DMA write mode; I wonder if that could be | ||
643 | made to pull the data from the image buffer... */ | ||
644 | if (image->depth > 1) { | ||
645 | cfb_imageblit(info, image); | ||
646 | return; | ||
647 | } | ||
648 | |||
649 | dx = image->dx; | 640 | dx = image->dx; |
650 | dy = image->dy; | 641 | dy = image->dy; |
651 | width = image->width; | 642 | width = image->width; |