Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id ED2B889C96 for ; Mon, 27 Sep 2021 11:21:09 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= Date: Mon, 27 Sep 2021 13:21:00 +0200 Message-Id: <20210927112100.87984-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Remove duplicated assignment List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: igt-dev@lists.freedesktop.org Cc: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= , Petri Latvala , Ashutosh Dixit List-ID: Due to some changes related in the alignment in the future remove unnecessary assignment. Signed-off-by: Zbigniew KempczyƄski Cc: Petri Latvala Cc: Ashutosh Dixit --- lib/intel_batchbuffer.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c index 399d0e990..e3e649ca3 100644 --- a/lib/intel_batchbuffer.c +++ b/lib/intel_batchbuffer.c @@ -2020,9 +2020,6 @@ __intel_bb_add_intel_buf(struct intel_bb *ibb, struct intel_buf *buf, buf->addr.offset, alignment, write); buf->addr.offset = obj->offset; - if (!ibb->enforce_relocs) - obj->alignment = alignment; - if (igt_list_empty(&buf->link)) { igt_list_add_tail(&buf->link, &ibb->intel_bufs); buf->ibb = ibb; -- 2.26.0