From patchwork Wed Nov 4 18:41:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 318581 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D0FAC2D0A3 for ; Wed, 4 Nov 2020 18:47:19 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E7AB320780 for ; Wed, 4 Nov 2020 18:47:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="CwNLRFq2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E7AB320780 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaNoT-0000Ph-Jn for qemu-devel@archiver.kernel.org; Wed, 04 Nov 2020 13:47:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaNjE-0000pU-CZ for qemu-devel@nongnu.org; Wed, 04 Nov 2020 13:41:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:26091) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kaNjC-0001zc-50 for qemu-devel@nongnu.org; Wed, 04 Nov 2020 13:41:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604515309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=g3L/0LWUS5AALGZ/Ad9jPepioK718BBOf2ilNljz6+w=; b=CwNLRFq2jBRXn1GQaqQoPjpboTeC0LwGi6bgVisasExz3u0PbvvYXq3T0pvvREI8ixs/h/ j6YkpXaHKRaXspgAG6FN3NIYPRylCgYWvMKq1q3I5kY+YWPKPvB4p5Vfwc2ur2MCv0MS6I 9P2liqt0Foq1xeeVzE5jpyp/WvlB8+U= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-84-mOA9BdrNOou9dsrtTiMTfQ-1; Wed, 04 Nov 2020 13:41:47 -0500 X-MC-Unique: mOA9BdrNOou9dsrtTiMTfQ-1 Received: by mail-wm1-f71.google.com with SMTP id z62so1477676wmb.1 for ; Wed, 04 Nov 2020 10:41:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=g3L/0LWUS5AALGZ/Ad9jPepioK718BBOf2ilNljz6+w=; b=teY7jz0/GJ8rctxiGwY0qCuDqvYVDxZpsLduIs3HtTNF5g7C2E3eRx3pGnr4rIMCOR fb2pGDiGeZCRjAOJkNZYjCey/ssA9EozDiVMX5RrxDzgDQ82Xq/nBXSz/xVCj7uzoxvR ISL1cJwRifM77J9qCxCXxkWh6qoGLDWMZdqoh55KPhyEzex82dYxJH8WYzCPWV7Zdd5a yoPm1tyLoNCLqysCpQUiZCADRGLCmWJEr3+Ukj4u4O4QkN392Kn0NJgxOufGH2UDD5v7 5xq7nuIg5Xf1wQ/xwhngOR8I2fD1yGYz9LEwKzEvVhYHrT339S/01lhtqJFkvNJE7yy1 71RA== X-Gm-Message-State: AOAM5316YjEuyeI2WdPFGWY2OzTEdBuGk5WI8XliW1t98vmsAF9iK6o5 Fl4S6zNEHew008XzsK0mWU4URJkxthGG68dHybm/7lw1SQuAoBHn6mqEqHwV7JXPeSkuoh/uplw 2xpxNzLfyOzXP8kg= X-Received: by 2002:adf:9544:: with SMTP id 62mr233340wrs.223.1604515305333; Wed, 04 Nov 2020 10:41:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzp2XWJ38E9Qo5hR9cTdSGT4LK1JpFCnexGRxULJDLq8MeYQBdTbr5V2Rq6qIOCsEvZIJ26iQ== X-Received: by 2002:adf:9544:: with SMTP id 62mr233329wrs.223.1604515305194; Wed, 04 Nov 2020 10:41:45 -0800 (PST) Received: from redhat.com (bzq-79-176-118-93.red.bezeqint.net. [79.176.118.93]) by smtp.gmail.com with ESMTPSA id g190sm165104wmg.29.2020.11.04.10.41.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 10:41:44 -0800 (PST) Date: Wed, 4 Nov 2020 13:41:42 -0500 From: "Michael S. Tsirkin" To: qemu-devel@nongnu.org Subject: [PULL v3 09/31] hw/acpi : add space before the open parenthesis '(' Message-ID: <20201104184040.285057-10-mst@redhat.com> References: <20201104184040.285057-1-mst@redhat.com> MIME-Version: 1.0 In-Reply-To: <20201104184040.285057-1-mst@redhat.com> X-Mailer: git-send-email 2.27.0.106.g8ac3dc51b1 X-Mutt-Fcc: =sent Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline Received-SPF: pass client-ip=63.128.21.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/03 22:09:52 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Igor Mammedov , Kai Deng , Xinhao Zhang Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Xinhao Zhang Fix code style. Space required before the open parenthesis '('. Signed-off-by: Xinhao Zhang Signed-off-by: Kai Deng Message-Id: <20201103102634.273021-2-zhangxinhao1@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/acpi/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/core.c b/hw/acpi/core.c index ade9158cbf..2c0c83221f 100644 --- a/hw/acpi/core.c +++ b/hw/acpi/core.c @@ -558,7 +558,7 @@ static void acpi_pm1_cnt_write(ACPIREGS *ar, uint16_t val) if (val & ACPI_BITMASK_SLEEP_ENABLE) { /* change suspend type */ uint16_t sus_typ = (val >> 10) & 7; - switch(sus_typ) { + switch (sus_typ) { case 0: /* soft power off */ qemu_system_shutdown_request(SHUTDOWN_CAUSE_GUEST_SHUTDOWN); break;