Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4740719pjb; Mon, 27 Jul 2020 04:04:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3Y+qv6lJ4JDQWOadwzGV06MBCz6iAUr4waiwbZLcxhV9owEkdsCR76a6d8nVEEGojwix9 X-Received: by 2002:a17:906:365a:: with SMTP id r26mr16782311ejb.52.1595847891633; Mon, 27 Jul 2020 04:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595847891; cv=none; d=google.com; s=arc-20160816; b=yx24Dk+aDBZ3dKeruuXpsVPFjb1tQKRDtFCR0L/XyRwppiOQW8Vvm1dZtUa6XvolNb +Gf1giJDLYuVjAX3EqU5aviTFdv2aJm6cXpdZSV3NZ2KzX6I23UI0rV6l+WI89uWBKWX MeN5EAOyM0P0GvNf0sEHacKAYdy5HajNEO44lVLnEQESkeIq0k/ArfI3Ezl8s5nW8T6v cPUy5tRPV9ZK9+oRKaE4qPodQXIIKF+eraHFXVqnvwGe9mFx0fmXj6KSHSzLbC2QbgRd fTUXk60tTigyxcELS1xSIdyqy7+Cag/jKTM6H9RPgREEnvNFvd5g7NXRkqadBnWmiLu5 K+FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=p4k9Os2ArmpJW1WhoE2P/d96vuDCNx7rQvmeE7/CkMc=; b=x8LJdCoAsZkh/d+hfN+L4w2E3/8VHvD8Ccang//CnG5v+G4e4oDlWpwv0MNzDCSQgW w0TCJW7ABV1Q9gKxN2HaolTil9QgkjO237LtcvPkur9HhZPxJXPcWxFnp1Qhtlx2kmTY 8LRHOdn2/5JOHWAhgjdET2fJF1wlro9YIA2IPE2yOG4uVHd0u6FSmKXQyv9Hv+QXc40e ktCqAPezjKbBSOAWF7PCS8FRLRdfi/fXHvFZFG+4WF3mE6kVcFP8vVHmlwpxLY6kBgMS S1koopYl6DYRfLudHqFqrkcse8QtIFSNwgDQxTUFgKhkFtKPESh8aAzN4aBw1tR3jgjt X4hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oz19si5593190ejb.202.2020.07.27.04.04.22; Mon, 27 Jul 2020 04:04:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728122AbgG0Kel (ORCPT + 99 others); Mon, 27 Jul 2020 06:34:41 -0400 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:58521 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728146AbgG0Kel (ORCPT ); Mon, 27 Jul 2020 06:34:41 -0400 Received: from localhost.localdomain ([93.23.16.147]) by mwinf5d60 with ME id 8Aae2300C3ANib903AafkC; Mon, 27 Jul 2020 12:34:39 +0200 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Mon, 27 Jul 2020 12:34:39 +0200 X-ME-IP: 93.23.16.147 From: Christophe JAILLET To: alexander.deucher@amd.com, christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH 2/2] drm/radeon: avoid a useless memset Date: Mon, 27 Jul 2020 12:34:36 +0200 Message-Id: <20200727103436.50793-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid a memset after a call to 'dma_alloc_coherent()'. This is useless since commit 518a2f1925c3 ("dma-mapping: zero memory returned from dma_alloc_*") Signed-off-by: Christophe JAILLET --- drivers/gpu/drm/radeon/radeon_gart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_gart.c b/drivers/gpu/drm/radeon/radeon_gart.c index b7ce254e5663..3808a753127b 100644 --- a/drivers/gpu/drm/radeon/radeon_gart.c +++ b/drivers/gpu/drm/radeon/radeon_gart.c @@ -85,7 +85,6 @@ int radeon_gart_table_ram_alloc(struct radeon_device *rdev) } #endif rdev->gart.ptr = ptr; - memset((void *)rdev->gart.ptr, 0, rdev->gart.table_size); return 0; } -- 2.25.1