From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 1886D740037 for ; Fri, 20 Oct 2023 12:19:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=+1cWXH3sD+d6ja9EDWxhc3n0nE7fCTGM/TxbVGkOn1s=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1697804353; v=1; b=GKZyyafT2FWHCCDPKeOAzPoGa5XI6eF7MeC1cgkfrlBjDcAXJ8/lqcMX0SGiimnE4I6eJqFm g+cyQzOCbiSSReXcVPoCKRHzAoArkqJkZJgt9XRhEZzFO8TlUEpu3aO7Hn9n8JmBiAZZf/yhIwq cNtM5RmYP54RSrj3ED7sOGBw= X-Received: by 127.0.0.2 with SMTP id yGvFYY7687511xk6vIgxfy6B; Fri, 20 Oct 2023 05:19:13 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.52928.1697804352989004577 for ; Fri, 20 Oct 2023 05:19:13 -0700 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-138-t5r6_grqPs2bfoHIeEXfiw-1; Fri, 20 Oct 2023 08:19:09 -0400 X-MC-Unique: t5r6_grqPs2bfoHIeEXfiw-1 X-Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AC4F5185A797; Fri, 20 Oct 2023 12:19:08 +0000 (UTC) X-Received: from lacos-laptop-9.usersys.redhat.com (unknown [10.39.194.108]) by smtp.corp.redhat.com (Postfix) with ESMTP id C8D85503B; Fri, 20 Oct 2023 12:19:07 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm , Wenyi Xie Subject: [edk2-devel] [edk2-platforms PATCH 1/7] Hisilicon/DS3231RealTimeClockLib: remove superfluous instance init steps Date: Fri, 20 Oct 2023 14:18:57 +0200 Message-Id: <20231020121903.44986-2-lersek@redhat.com> In-Reply-To: <20231020121903.44986-1-lersek@redhat.com> References: <20231020121903.44986-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: kKLcjQFA3UzI7e5VRpIHlCAzx7686176AA= Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="US-ASCII"; x-default=true X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=GKZyyafT; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io UmVhbFRpbWVDbG9ja0xpYiBpbnN0YW5jZXMgYXJlIGNvbnN1bWVkIGJ5IGVkazIncwpFbWJlZGRl ZFBrZy9SZWFsVGltZUNsb2NrUnVudGltZUR4ZSBkcml2ZXIuIEluIGl0cyBlbnRyeS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