Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4154211ybi; Mon, 15 Jul 2019 04:44:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwselvGjMdDmVgxEkMSSOiGh1kKQf82Hzl7AN10qIpXOEhV39ZrNmEzOGTRQVSObIOyh5/e X-Received: by 2002:a65:50cb:: with SMTP id s11mr26403123pgp.371.1563191095514; Mon, 15 Jul 2019 04:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563191095; cv=none; d=google.com; s=arc-20160816; b=kPc0wg7F8iMCs4AJRp2JvxzIFEuUo7whFOF8yj/3mDK1RE6Y49SlbK7jLs5015kjlX VVhIud9f3Mfw4+N1bSrcxuAzGutCtQH9eGplWejrGuop/EdpsrA67X+erArlwImQh9zm Fg6YT1qkhCuIZj3geqocNH92yzI24yYuS7jQRhcT4o3QcIuBuhEobgspeJmmI8cIlMHx RIely9YU1dZQLJXO18pdXZdvLGI6X9/030dkQezXr7DTH6BLCkVyDmJClg+Yps8M0bTI HRV234fGbBXynHUni5Z5cxTyqFPm+4VbeqWBiPimoAuq2al9BaWwaAmC1bCKSRg3jPOw HAMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :dkim-signature; bh=C0fjdopnLQ/4XRxvrGWgg1WnG5V3U1P1HH2GQHIbWCw=; b=x04zpjWVhxyeuW1Kke3o8ui8R1GDCKrRKkO9OCPm3itK2RTkO2sVBSe720OKr5MGo1 0+o6i2WyY/LBRrWEmE06ogZAhh+bz7e1umP5lI1TA+rQ1+og9r8V8SSGHK5yHEwGpv7F Gm4nc/hj0tF8WiozXl6hlPX3R14KfD2BtQ6XdXZDEDV6+on/5j3kgdXrM5JwPyJAeCY7 iYFRqvqLsW3EhgUXYfPPFiYGioBJdkp+2jMooE6kiNRg1m6CU5UgqnWiWtsE1Wmcp3Lx GxpA5GA2vO8iOTA0rsBz4IS47iu2BphiHKWlQNT5CtjuWAmdN2MNe8fsRFgro+feMg0Q xNFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JNA2kjGC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si16602970pgc.133.2019.07.15.04.44.38; Mon, 15 Jul 2019 04:44:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JNA2kjGC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729875AbfGOLns (ORCPT + 99 others); Mon, 15 Jul 2019 07:43:48 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40987 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729725AbfGOLnr (ORCPT ); Mon, 15 Jul 2019 07:43:47 -0400 Received: by mail-pl1-f193.google.com with SMTP id m9so8126440pls.8 for ; Mon, 15 Jul 2019 04:43:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=C0fjdopnLQ/4XRxvrGWgg1WnG5V3U1P1HH2GQHIbWCw=; b=JNA2kjGCPtUcqzmfIYLCGAnyt6Fw8N62mZU6OHEB1L1Ctq8yKC42XkJ35VW6Z2hbUW mKPFd1dhG9VueCUY+YyH2C/7IX/zI2n9bY/kimX4zmAjbsTj/C7w42TwMbNyv+cMUyTb M6aQxhiUSyoagsGG9jHaD0KzNZJcFgS0pDbvuhBdXBLMsmj9YR//voSp7S4aDP/NTxOr vQlH5Qs4DZPFa9SDHVwFkAGjLU0/e3+BtCflurhKnH0RqeOu+FHlhA3gPfSW+62hf+y/ I3aLm0JvPkwYd/EjM51PGhHiD/JrdDE/IQsrA/60RgYzeDaXM1mvTgJLshoFAFrukseM ivXg== 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=C0fjdopnLQ/4XRxvrGWgg1WnG5V3U1P1HH2GQHIbWCw=; b=NSyQ8+wDbzKXFCsEO4VjDYV1LbO7vqcBSfCLPrbeCZcgmr9ZmaasK+NxKuNGK3csNW U29McoQO7Km2cLympIkgkEuv5nEtFar3riQIibyW9ZgJHCo8pT9e8aYhoDzD5ZTfQ0wQ 9sYUt8khv9BKt/2XrA102dJm5bVpuHWPss/wy9lzpEQ1eHgRrXnGPyGftnHzsv6E/bbj WJbeuavhiFu18pDuok1mGCW6vH98tX4wk4R7oHH+xo6P6krS+h7ZfXQ3IPcb6AlGarSE 6O1v3qPi9AuDi557Ep81S7uSXaOn2xdq2NeU1dl2o7YMS3WcfBeBrXzyGxtX0FqucSlT 0elA== X-Gm-Message-State: APjAAAXIGHJ325/7PYWL/p8hPTB2bNHzXWdNcZUXKmJ8nvBENWRRZiIx Kqb98iYGG20wg5bmAkwpPek= X-Received: by 2002:a17:902:28c9:: with SMTP id f67mr28299180plb.19.1563191026650; Mon, 15 Jul 2019 04:43:46 -0700 (PDT) Received: from hfq-skylake.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.googlemail.com with ESMTPSA id u97sm16400840pjb.26.2019.07.15.04.43.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Jul 2019 04:43:46 -0700 (PDT) From: Fuqian Huang Cc: Rex Zhu , Evan Quan , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Zhou , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Fuqian Huang Subject: [PATCH] drm/amd/powerplay: remove redundant memset Date: Mon, 15 Jul 2019 19:43:32 +0800 Message-Id: <20190715114332.24634-1-huangfq.daxian@gmail.com> X-Mailer: git-send-email 2.11.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kzalloc has already zeroed the memory. So the memset is unneeded. Signed-off-by: Fuqian Huang --- drivers/gpu/drm/amd/powerplay/vega20_ppt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c index 8fafcbdb1dfd..0fb6066997b2 100644 --- a/drivers/gpu/drm/amd/powerplay/vega20_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/vega20_ppt.c @@ -1295,7 +1295,6 @@ static int vega20_set_default_od8_setttings(struct smu_context *smu) if (!table_context->od8_settings) return -ENOMEM; - memset(table_context->od8_settings, 0, sizeof(struct vega20_od8_settings)); od8_settings = (struct vega20_od8_settings *)table_context->od8_settings; if (smu_feature_is_enabled(smu, FEATURE_DPM_SOCCLK_BIT)) { -- 2.11.0