From nobody Tue Nov 4 13:17:53 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1504151718378103.5320879145238; Wed, 30 Aug 2017 20:55:18 -0700 (PDT) Received: from localhost ([::1]:53788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnGZY-0001dW-5I for importer@patchew.org; Wed, 30 Aug 2017 23:55:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnGXq-0000kT-E1 for qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnGXm-0006aN-6E for qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:30 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:33082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnGXm-0006aA-2D for qemu-devel@nongnu.org; Wed, 30 Aug 2017 23:53:26 -0400 Received: by mail-qk0-x241.google.com with SMTP id k126so3514674qkb.0 for ; Wed, 30 Aug 2017 20:53:25 -0700 (PDT) Received: from yoga.offpageads.com ([181.93.89.178]) by smtp.gmail.com with ESMTPSA id x20sm5072398qtb.5.2017.08.30.20.53.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 20:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5DQdd00AJTXwPFuImthUxG3CuA9Qds7GlB6RWCDBigg=; b=C4h+kC2ZY/FEviwakq99b70n0ZlZPd9K7iv2KoToShDFwakUL2w5FzDNo0NzOINskQ VMQcGFD9Bu6N2HGbnO/v2rmHf2bfjomr9qHlmxAgqu3D26PsYOxLvhcqwgKaKu05HYmi A0J+KDpZhem9YU8oV5DUx1kDspNX+LroZlVnIEeVapxiEjwjqSbu+EImJW2wZlbvxtaa c4TgBS3lFiMiKvRlAE7Gux4o5lZ5kZncVLN4kIKfmJrOJHlSch6MQFExuIKiBGMu1ZHT xX03tagVxIvtxzH4fG9neKINhpAxIFk0h4MYtas4P0HwPSalUZOCinyGCGxd9b96Ht/v vaLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=5DQdd00AJTXwPFuImthUxG3CuA9Qds7GlB6RWCDBigg=; b=dshokUXV0JqNs2EKTE4eYVNnW+GLyWVoY7Lmsz5tTpkGN/j511WwX+QPNUAmksGYAp PgeYgm6WZjK5KXhgs5yakEBB7f6Z4uPWA4QPe0hJ72I37fRQr/+GfM13QYy/ZB+FHTOC SbdE51PrAkOGgreyV5aspxh06hqOYNr4VEkVB2IOsqAL+/zLypzU8Sr94T9m6+L3RPd2 ggbPb06GarXrSmqc0rSCgt21PeXPmAun4DATgIVoUqfsWakQySvek79//ia1luBaNeJ0 j3pqaUo40wZQLdvFQqzJeeZ5P0AAw2EzSHRgfJwdyGkU82zdO1od8R7eFO3auJ+vzAav iwwQ== X-Gm-Message-State: AHPjjUiV+MTkCaL9Gw6sW8Guaqq0EtJJV0MSj7Ntt/Vcf5BltHEBwYal ym79F454EsPvWw== X-Received: by 10.55.71.130 with SMTP id u124mr1928391qka.159.1504151605510; Wed, 30 Aug 2017 20:53:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Paolo Bonzini , Peter Maydell , Aurelien Jarno , Yongbok Kim Date: Thu, 31 Aug 2017 00:53:03 -0300 Message-Id: <20170831035306.29170-5-f4bug@amsat.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170831035306.29170-1-f4bug@amsat.org> References: <20170831035306.29170-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 Subject: [Qemu-devel] [PATCH 4/7] hw/mips/malta: use serial_chr_nonnull() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/mips/mips_malta.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index af678f5784..8620e9c42c 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -1035,11 +1035,7 @@ void mips_malta_init(MachineState *machine) =20 /* Make sure the first 3 serial ports are associated with a device. */ for(i =3D 0; i < 3; i++) { - if (!serial_hds[i]) { - char label[32]; - snprintf(label, sizeof(label), "serial%d", i); - serial_hds[i] =3D qemu_chr_new(label, "null"); - } + serial_hds[i] =3D serial_chr_nonnull(serial_hds[i]); } =20 /* create CPU */ --=20 2.14.1