diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2015-09-29 10:47:49 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-29 15:20:35 +0200 |
commit | 1282bade3b8e34cb4a26b8444577d70c7f15e0d8 (patch) | |
tree | dae2e848d7ec54846533d7a0e25d4e329271770c /drivers/staging/sm750fb/sm750_accel.c | |
parent | 96a384a7ed53b38fc2ba35fa5ef828a2c7368a3a (diff) | |
download | linux-stable-1282bade3b8e34cb4a26b8444577d70c7f15e0d8.tar.gz linux-stable-1282bade3b8e34cb4a26b8444577d70c7f15e0d8.tar.bz2 linux-stable-1282bade3b8e34cb4a26b8444577d70c7f15e0d8.zip |
staging: sm750fb: remove dead code
Remove the code enclosed in '#if 0'
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/sm750_accel.c')
-rw-r--r-- | drivers/staging/sm750fb/sm750_accel.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c index b623fbf223f4..43e59725920c 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -233,20 +233,10 @@ unsigned int rop2) /* ROP value */ */ write_dpr(accel, DE_WINDOW_DESTINATION_BASE, dBase); /* dpr44 */ -#if 0 /* Program pitch (distance between the 1st points of two adjacent lines). Note that input pitch is BYTE value, but the 2D Pitch register uses pixel values. Need Byte to pixel conversion. */ - if (Bpp == 3) { - sx *= 3; - dx *= 3; - width *= 3; - write_dpr(accel, DE_PITCH, - FIELD_VALUE(0, DE_PITCH, DESTINATION, dPitch) | - FIELD_VALUE(0, DE_PITCH, SOURCE, sPitch)); /* dpr10 */ - } else -#endif { write_dpr(accel, DE_PITCH, FIELD_VALUE(0, DE_PITCH, DESTINATION, (dPitch/Bpp)) | @@ -344,21 +334,10 @@ int hw_imageblit(struct lynx_accel *accel, It is an address offset (128 bit aligned) from the beginning of frame buffer. */ write_dpr(accel, DE_WINDOW_DESTINATION_BASE, dBase); -#if 0 /* Program pitch (distance between the 1st points of two adjacent lines). Note that input pitch is BYTE value, but the 2D Pitch register uses pixel values. Need Byte to pixel conversion. */ - if (bytePerPixel == 3) { - dx *= 3; - width *= 3; - startBit *= 3; - write_dpr(accel, DE_PITCH, - FIELD_VALUE(0, DE_PITCH, DESTINATION, dPitch) | - FIELD_VALUE(0, DE_PITCH, SOURCE, dPitch)); /* dpr10 */ - - } else -#endif { write_dpr(accel, DE_PITCH, FIELD_VALUE(0, DE_PITCH, DESTINATION, dPitch/bytePerPixel) | |