From nobody Sun May 10 23:27:33 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F69EC433EF for ; Thu, 21 Apr 2022 10:32:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388399AbiDUKey (ORCPT ); Thu, 21 Apr 2022 06:34:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235786AbiDUKev (ORCPT ); Thu, 21 Apr 2022 06:34:51 -0400 Received: from mail.meizu.com (unknown [14.29.68.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3641E2AE1; Thu, 21 Apr 2022 03:32:01 -0700 (PDT) Received: from IT-EXMB-1-125.meizu.com (172.16.1.125) by mz-mail04.meizu.com (172.16.1.16) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 21 Apr 2022 18:32:03 +0800 Received: from meizu.meizu.com (172.16.137.70) by IT-EXMB-1-125.meizu.com (172.16.1.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.14; Thu, 21 Apr 2022 18:31:59 +0800 From: Haowen Bai To: Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , , "David S. Miller" , Jakub Kicinski , Paolo Abeni CC: Haowen Bai , , Subject: [PATCH] drm/amd/display: Remove useless code Date: Thu, 21 Apr 2022 18:31:57 +0800 Message-ID: <1650537117-14450-1-git-send-email-baihaowen@meizu.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [172.16.137.70] X-ClientProxiedBy: IT-EXMB-1-126.meizu.com (172.16.1.126) To IT-EXMB-1-125.meizu.com (172.16.1.125) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" payload only memset but no use at all, so we drop them. Signed-off-by: Haowen Bai --- drivers/net/ethernet/mscc/ocelot_vcap.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/mscc/ocelot_vcap.c b/drivers/net/ethernet= /mscc/ocelot_vcap.c index c8701ac955a8..1e74bdb215ec 100644 --- a/drivers/net/ethernet/mscc/ocelot_vcap.c +++ b/drivers/net/ethernet/mscc/ocelot_vcap.c @@ -672,12 +672,10 @@ static void is1_entry_set(struct ocelot *ocelot, int = ix, { const struct vcap_props *vcap =3D &ocelot->vcap[VCAP_IS1]; struct ocelot_vcap_key_vlan *tag =3D &filter->vlan; - struct ocelot_vcap_u64 payload; struct vcap_data data; int row =3D ix / 2; u32 type; =20 - memset(&payload, 0, sizeof(payload)); memset(&data, 0, sizeof(data)); =20 /* Read row */ @@ -813,11 +811,9 @@ static void es0_entry_set(struct ocelot *ocelot, int i= x, { const struct vcap_props *vcap =3D &ocelot->vcap[VCAP_ES0]; struct ocelot_vcap_key_vlan *tag =3D &filter->vlan; - struct ocelot_vcap_u64 payload; struct vcap_data data; int row =3D ix; =20 - memset(&payload, 0, sizeof(payload)); memset(&data, 0, sizeof(data)); =20 /* Read row */ --=20 2.7.4