diff options
Diffstat (limited to 'drivers/staging/sm750fb/sm750_accel.c')
-rw-r--r-- | drivers/staging/sm750fb/sm750_accel.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c index af0db5789c53..6be86e4963be 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -144,11 +144,9 @@ unsigned int height, /* width and height of rectangle in pixel value */ unsigned int rop2) /* ROP value */ { unsigned int nDirection, de_ctrl; - int opSign; nDirection = LEFT_TO_RIGHT; /* Direction of ROP2 operation: 1 = Left to Right, (-1) = Right to Left */ - opSign = 1; de_ctrl = 0; /* If source and destination are the same surface, need to check for overlay cases */ @@ -212,7 +210,6 @@ unsigned int rop2) /* ROP value */ sy += height - 1; dx += width - 1; dy += height - 1; - opSign = (-1); } /* @@ -259,8 +256,6 @@ unsigned int rop2) /* ROP value */ if (accel->de_wait() != 0) return -1; - { - write_dpr(accel, DE_SOURCE, ((sx << DE_SOURCE_X_K1_SHIFT) & DE_SOURCE_X_K1_MASK) | (sy & DE_SOURCE_Y_K2_MASK)); /* dpr0 */ @@ -276,8 +271,6 @@ unsigned int rop2) /* ROP value */ DE_CONTROL_COMMAND_BITBLT | DE_CONTROL_STATUS; write_dpr(accel, DE_CONTROL, de_ctrl); /* dpr0c */ - } - return 0; } @@ -384,7 +377,7 @@ int sm750_hw_imageblit(struct lynx_accel *accel, /* Write MONO data (line by line) to 2D Engine data port */ for (i = 0; i < height; i++) { /* For each line, send the data in chunks of 4 bytes */ - for (j = 0; j < (ul4BytesPerScan/4); j++) + for (j = 0; j < (ul4BytesPerScan / 4); j++) write_dpPort(accel, *(unsigned int *)(pSrcbuf + (j * 4))); if (ulBytesRemain) { |