From: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> We've already validated the command buffer offset, there's no need to repeat it elsewhere. Signed-off-by: Russell King <rmk+kernel@xxxxxxxxxxxxxxxx> --- drivers/staging/etnaviv/etnaviv_gem_submit.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/staging/etnaviv/etnaviv_gem_submit.c b/drivers/staging/etnaviv/etnaviv_gem_submit.c index f94b6e8fb4fb..a0bc61946036 100644 --- a/drivers/staging/etnaviv/etnaviv_gem_submit.c +++ b/drivers/staging/etnaviv/etnaviv_gem_submit.c @@ -219,11 +219,6 @@ static int submit_reloc(struct etnaviv_gem_submit *submit, struct etnaviv_gem_ob u32 *ptr = obj->vaddr; int ret; - if (offset % 4) { - DRM_ERROR("non-aligned cmdstream buffer: %u\n", offset); - return -EINVAL; - } - for (i = 0; i < nr_relocs; i++) { struct drm_etnaviv_gem_submit_reloc submit_reloc; struct etnaviv_gem_object *bobj; -- 2.5.1 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel