From patchwork Thu Jun 27 17:35:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fuqian Huang X-Patchwork-Id: 11020925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BA94114BB for ; Fri, 28 Jun 2019 01:26:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABA35285D6 for ; Fri, 28 Jun 2019 01:26:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FEAC28762; Fri, 28 Jun 2019 01:26:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C58B285D6 for ; Fri, 28 Jun 2019 01:26:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A7796E86E; Fri, 28 Jun 2019 01:26:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 760226E358; Thu, 27 Jun 2019 17:36:02 +0000 (UTC) Received: by mail-pf1-x443.google.com with SMTP id d126so1584293pfd.2; Thu, 27 Jun 2019 10:36:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=12AyxFRnGJTFUoiiKdiSfwhatqGTVYkB7zK+n7S66ho=; b=AdDc1w2B/jbg4/788W+7AUxoYGwNUPOxzwhXW8iwse6SJtD69dVD8kwe0OvuIdpQRo f2jHHMkZuCNjmFL942oulAc3MNUfHLVjXkc5ykuEtfeeBv7EbqUlLuQE+HlCNuRVJgLM 5Itpnwbu5zvtKy7e5E8zs+UJ9GpTOFXP9JzpjmiUCtou/36boo0LXms1qntW8rilMzNE jcMxuSVmJYqSwsuEzRd+1FTF27dB6lQQH22snc0vEqY1Q1/f4Tjjg1XgR1KYcHt0kVqf oLS9ywCw9DxshZ8wXJgEKy7XJBj27AdCLDAx4mmZpUeqp4/uKb1KWB+yZU7kO65CQhI8 7+Zg== X-Gm-Message-State: APjAAAWUHcsGuN3QQjBW+/elF+uUYyy9Pi9MhUo0p1k1RbsACDRsPJxp Z90jXTLYvx3CkuGc3cJF/2U= X-Google-Smtp-Source: APXvYqyR5XvNIWESHWAGfLobAFZmd4VmL0Inll2lIYRoBHAuhJI7iLpzCgRUuoRXBi5wjN5alDeXyw== X-Received: by 2002:a17:90a:8a17:: with SMTP id w23mr7195171pjn.139.1561656961986; Thu, 27 Jun 2019 10:36:01 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id u20sm3245627pfm.145.2019.06.27.10.35.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 10:36:01 -0700 (PDT) From: Fuqian Huang To: Subject: [PATCH 14/87] gpu: amd: Remove call to memset after kzalloc Date: Fri, 28 Jun 2019 01:35:52 +0800 Message-Id: <20190627173553.2561-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 X-Mailman-Approved-At: Fri, 28 Jun 2019 01:25:51 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=12AyxFRnGJTFUoiiKdiSfwhatqGTVYkB7zK+n7S66ho=; b=aTN0oUfnkii4ZuE43WoaWkdIADMd01xwCsj58JaW4GjQkbBQR5Z0I2Ckj6XVJoRmLG 5vTVFPOpbErhLk/ja3TRlpLQ4gGeDpa0IZMkkLy7VkNeiEQjF70GIVA9ms782AxL9FPC 6ySb+IjaZJFSPcYx6Z1mdUj8v4eudfV/oU4tXzgcE3Kal4FqKI/S8+WJevdLpx0+uozY lOKpao/BI1j8LpgwO+VQmDUNn2GQoLlUtNPb6OPMfFzz9UqRV+KrGfEtaTv2d6cqcqew J3XPZR4ibG0zE89f6E0WnkLk8EyeNqKd9JjvXunBPPFwDhMCRyikPYrOFT0qbojwQEmC S71g== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Nicholas Kazlauskas , Alex Deucher , dri-devel@lists.freedesktop.org, David Francis , Fuqian Huang , =?utf-8?q?Christian_K=C3=B6nig?= MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP kzalloc already zerored the memory. so memset is unneeded. Signed-off-by: Fuqian Huang --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c index fd22b4474dbf..4e6da61d1a93 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c @@ -279,8 +279,6 @@ void *amdgpu_dm_irq_register_interrupt(struct amdgpu_device *adev, return DAL_INVALID_IRQ_HANDLER_IDX; } - memset(handler_data, 0, sizeof(*handler_data)); - init_handler_common_data(handler_data, ih, handler_args, &adev->dm); irq_source = int_params->irq_source;