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 194D5AC11FF for ; Fri, 20 Oct 2023 12:17:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=h200lT1j+/WDqZY6MGWJlLBdb0scdUmbGQY9hINSYB0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id: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=1697804274; v=1; b=uWYjYgNK9pxgDtohaYpPoBu86Suht/6pZ6n8v6VPLSq4PoJcSJ9V6FYjKo+QUvWL0tqq2zxq 9u7rBEGyot4dQWwEw4Bysh5ZdTZc/MYshurSBHtr6kI65wt2uKJpw883OsJokHpPVXowMmLB2nM wvclV8Vyyf+cG1yi8BkoSyMY= X-Received: by 127.0.0.2 with SMTP id ryOQYY7687511xMbFEBMGrK3; Fri, 20 Oct 2023 05:17:54 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web10.52755.1697804273669199859 for ; Fri, 20 Oct 2023 05:17:53 -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-287-yWDGiD_lOmWDCjVofAnZow-1; Fri, 20 Oct 2023 08:17:51 -0400 X-MC-Unique: yWDGiD_lOmWDCjVofAnZow-1 X-Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 32243801234; Fri, 20 Oct 2023 12:17:51 +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 6D925492BD9; Fri, 20 Oct 2023 12:17:50 +0000 (UTC) From: "Laszlo Ersek" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Leif Lindholm Subject: [edk2-devel] [PATCH] ArmPlatformPkg/PL031RealTimeClockLib: remove superfluous instance init steps Date: Fri, 20 Oct 2023 14:17:48 +0200 Message-Id: <20231020121748.44862-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 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: NgSNTcgBkTruRZvO8wneIjrqx7686176AA= 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=uWYjYgNK; 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 ZFBrZy9SZWFsVGltZUNsb2NrUnVudGltZUR4ZSBkcml2ZXIuIEluIGl0cyBlbnRyeSBwb2ludCBm dW5jdGlvbgpJbml0aWFsaXplUmVhbFRpbWVDbG9jaygpLCB0aGUgZHJpdmVyOgoKKDEpIGNhbGxz IExpYlJ0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LyBEZWNsYXJlIHRoZSBjb250cm9sbGVyIGFzIEVGSV9NRU1PUllfUlVOVElNRQ0KICAgU3RhdHVz ID0gZ0RTLT5BZGRNZW1vcnlTcGFjZSAoDQogICAgICAgICAgICAgICAgICAgRWZpR2NkTWVtb3J5 VHlwZU1lbW9yeU1hcHBlZElvLA0KICAgICAgICAgICAgICAgICAgIG1QTDAzMVJ0Y0Jhc2UsDQog ICAgICAgICAgICAgICAgICAgU0laRV80S0IsDQogICAgICAgICAgICAgICAgICAgRUZJX01FTU9S WV9VQyB8IEVGSV9NRU1PUllfUlVOVElNRQ0KICAgICAgICAgICAgICAgICAgICk7DQogICBpZiAo RUZJX0VSUk9SIChTdGF0dXMpKSB7DQogICAgIHJldHVybiBTdGF0dXM7DQogICB9DQogDQogICBT dGF0dXMgPSBnRFMtPlNldE1lbW9yeVNwYWNlQXR0cmlidXRlcyAobVBMMDMxUnRjQmFzZSwgU0la RV80S0IsIEVGSV9NRU1PUllfVUMgfCBFRklfTUVNT1JZX1JVTlRJTUUpOw0KICAgaWYgKEVGSV9F UlJPUiAoU3RhdHVzKSkgew0KICAgICByZXR1cm4gU3RhdHVzOw0KICAgfQ0KIA0KLSAgLy8gSW5z dGFsbCB0aGUgcHJvdG9jb2wNCi0gIEhhbmRsZSA9IE5VTEw7DQotICBTdGF0dXMgPSBnQlMtPklu c3RhbGxNdWx0aXBsZVByb3RvY29sSW50ZXJmYWNlcyAoDQotICAgICAgICAgICAgICAgICAgJkhh bmRsZSwNCi0gICAgICAgICAgICAgICAgICAmZ0VmaVJlYWxUaW1lQ2xvY2tBcmNoUHJvdG9jb2xH dWlkLA0KLSAgICAgICAgICAgICAgICAgIE5VTEwsDQotICAgICAgICAgICAgICAgICAgTlVMTA0K LSAgICAgICAgICAgICAgICAgICk7DQotICBBU1NFUlRfRUZJX0VSUk9SIChTdGF0dXMpOw0KLQ0K ICAgLy8NCiAgIC8vIFJlZ2lzdGVyIGZvciB0aGUgdmlydHVhbCBhZGRyZX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