aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/drm/r300_cmdbuf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/char/drm/r300_cmdbuf.c b/drivers/char/drm/r300_cmdbuf.c
index 6dd21754ba67..c08fa5076f05 100644
--- a/drivers/char/drm/r300_cmdbuf.c
+++ b/drivers/char/drm/r300_cmdbuf.c
@@ -506,8 +506,7 @@ static __inline__ int r300_emit_bitblt_multi(drm_radeon_private_t *dev_priv,
506 | RADEON_GMC_DST_PITCH_OFFSET_CNTL)) { 506 | RADEON_GMC_DST_PITCH_OFFSET_CNTL)) {
507 offset = cmd[2] << 10; 507 offset = cmd[2] << 10;
508 ret = r300_check_offset(dev_priv, offset); 508 ret = r300_check_offset(dev_priv, offset);
509 if (ret) 509 if (ret) {
510 {
511 DRM_ERROR("Invalid bitblt first offset is %08X\n", offset); 510 DRM_ERROR("Invalid bitblt first offset is %08X\n", offset);
512 return DRM_ERR(EINVAL); 511 return DRM_ERR(EINVAL);
513 } 512 }
@@ -517,8 +516,7 @@ static __inline__ int r300_emit_bitblt_multi(drm_radeon_private_t *dev_priv,
517 (cmd[1] & RADEON_GMC_DST_PITCH_OFFSET_CNTL)) { 516 (cmd[1] & RADEON_GMC_DST_PITCH_OFFSET_CNTL)) {
518 offset = cmd[3] << 10; 517 offset = cmd[3] << 10;
519 ret = r300_check_offset(dev_priv, offset); 518 ret = r300_check_offset(dev_priv, offset);
520 if (ret) 519 if (ret) {
521 {
522 DRM_ERROR("Invalid bitblt second offset is %08X\n", offset); 520 DRM_ERROR("Invalid bitblt second offset is %08X\n", offset);
523 return DRM_ERR(EINVAL); 521 return DRM_ERR(EINVAL);
524 } 522 }