Message ID | 20170831035306.29170-5-f4bug@amsat.org |
---|---|
State | New |
Headers | show
Return-Path: <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="C4h+kC2Z"; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xjT5L56pWz9s3w for <incoming@patchwork.ozlabs.org>; Thu, 31 Aug 2017 13:54:14 +1000 (AEST) Received: from localhost ([::1]:53785 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>) id 1dnGYW-0000mX-Q7 for incoming@patchwork.ozlabs.org; Wed, 30 Aug 2017 23:54:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <philippe.mathieu.daude@gmail.com>) 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 <philippe.mathieu.daude@gmail.com>) 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 <philippe.mathieu.daude@gmail.com>) 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 <qemu-devel@nongnu.org>; Wed, 30 Aug 2017 20:53:25 -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) 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) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org> To: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Aurelien Jarno <aurelien@aurel32.net>, Yongbok Kim <yongbok.kim@imgtec.com> 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: 8bit 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <f4bug@amsat.org>, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org> |
Series |
serial: add serial_chr_nonnull()
|
expand
|
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) /* Make sure the first 3 serial ports are associated with a device. */ for(i = 0; i < 3; i++) { - if (!serial_hds[i]) { - char label[32]; - snprintf(label, sizeof(label), "serial%d", i); - serial_hds[i] = qemu_chr_new(label, "null"); - } + serial_hds[i] = serial_chr_nonnull(serial_hds[i]); } /* create CPU */
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> --- hw/mips/mips_malta.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)