From patchwork Thu Sep 12 16:11:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierrick Bouvier X-Patchwork-Id: 13802327 Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BAB9413D8AC for ; Thu, 12 Sep 2024 16:12:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726157529; cv=none; b=iYnjLxvvhaNqHOkBf4HULW+9HbUplX1w+zAX034O8oQ8G5uTJ9xg5ufEyzkTrUvaQ6DNMK/J0zGIRiKpTGSBM6DR5nu+FRuEqPh2LcRiMyfO5oikA/OJxy4KDVt9pQr1ygr56KERtJkrZBa3BJ9KT1gBsuAhMPZizO9AuUk3BcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726157529; c=relaxed/simple; bh=NT0bzYtCC79RMKqpRvOxbXK6zhmx5cfv0BdXvkVUgVM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=juPGu7yfv93cEJ/jSHao1i6lKRJNkiKaCznQjXB+4FMJJwiOi9iES/TSKyR51NgnBjcvyx3wIOq6CkoQvPxMp8GAbizJdwjoqCw0QuZlgVb7z+fy0gII0p03Q5iO7inNcMysqcrd6sHeVwaHUIWOmogvH2Y7sdjNkJNH1v1V0eA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=viEUtg0C; arc=none smtp.client-ip=209.85.216.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="viEUtg0C" Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2d8a54f1250so826663a91.0 for ; Thu, 12 Sep 2024 09:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726157527; x=1726762327; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qewOobu1vObZbuzJ+iuWYysDqS1YnBarNPQM9eHAdiY=; b=viEUtg0CGfEfkkdMM9Dfpz/AWwZKGFxN793ieQ2xq/FaD+pqgYJsO0cDBi8UcorMe1 cSm2yrspddxcn0YlDlaoXIGMXBNwAsGz4a0VWo8nu1lKizh47Yagxj25LKekHHjAeQ0r D2u4UvMU89BomNRGfNA+uvbmnmaCKzzxzU/Tpf8BkiujdCt3SHtWIy+F2nNMgSaKXz4L BFFqWIrEJBxPMiAmZ8+MggnFTTUQphbBdSNEoXs5FGE/94ZR27Wf/pmomuLnqTadGH5I umWHaoDVoiUCzjdtA/sQrn/sZFRBP866QEWA/Plz+U6lYnN6VC3UOuc6njC4tMu+zmjt zPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726157527; x=1726762327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qewOobu1vObZbuzJ+iuWYysDqS1YnBarNPQM9eHAdiY=; b=ff4UmKMPbhdCCiqDH0+4SRmAeXgmmLk5PwfdDTR1wXh0Uea+4iY4UCt/v7rHVY/C6w 7YMCnhnM8xxFuVycIT7n4tgoXCOL3F9iwN7QIIUu3NbEXLz6Yc5zutxxJ1qkpsh6tL6S Adwg3i7t5KRISx9pp2ZRqwAXTrhlSnrhYvNtImVdbDIjvHMPjUYXBAD3tQLympvcBGS3 FmSVLuMp0lg1ZjOBdcekGxaRaZNbV05gfu2JRLVx0dZiVSiMzZ2KRPKNXkNpfialnd0M 7PIn68Pj8IzaCEH1ReKdiJMG6xgzwDSN91WhMfpr+KxxmzrHwbkUA5dyDfWSDRS8m6SI q4kg== X-Forwarded-Encrypted: i=1; AJvYcCW6IjGaiHEEr0VfaIp+LzpGgsiFs+TFpHRX44XSXsKZZTZFFuwkYXzMTEfhk4tLolQDOKY=@vger.kernel.org X-Gm-Message-State: AOJu0YyzFbdywbnT7YM/I2V1IBWNZ424DUvL9bUV81PQLF6+uRRPmIbh W7zwKfuy+abwF9Jk3S3rQJQuFSsc0TaKFDBoPbzZDbBpuk01M/ezxbLmj4PE2UY= X-Google-Smtp-Source: AGHT+IGfJHrcD4FeIRzLtjG1yF8QBxXB5+wVdXyMPyemp6yKvRgw1X8BWW7xKjm04CE0VvSJxj+cTg== X-Received: by 2002:a17:90a:2f64:b0:2d3:ce76:4af2 with SMTP id 98e67ed59e1d1-2db9ffee48amr3456585a91.18.1726157526967; Thu, 12 Sep 2024 09:12:06 -0700 (PDT) Received: from linaro.vn.shawcable.net ([2604:3d08:9384:1d00::9633]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2db0419aab4sm10868139a91.15.2024.09.12.09.12.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 09:12:06 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Nicholas Piggin , Igor Mammedov , Akihiko Odaki , Weiwei Li , "Maciej S. Szmigiero" , qemu-s390x@nongnu.org, Michael Rolnik , Liu Zhiwei , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , Palmer Dabbelt , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Nina Schoetterl-Glausch , Yanan Wang , Marcel Apfelbaum , Dmitry Fleytman , Stefan Berger , Halil Pasic , Paolo Bonzini , Laurent Vivier , Daniel Henrique Barboza , =?utf-8?q?Marc-Andr=C3=A9_?= =?utf-8?q?Lureau?= , kvm@vger.kernel.org, Joel Stanley , qemu-riscv@nongnu.org, Aurelien Jarno , Fabiano Rosas , Eduardo Habkost , Harsh Prateek Bora , Peter Xu , Hyman Huang , Rob Herring , Peter Maydell , Kevin Wolf , Marcelo Tosatti , Eric Farman , Helge Deller , Jesper Devantier , Daniel Henrique Barboza , Fam Zheng , Klaus Jensen , Keith Busch , Zhao Liu , qemu-ppc@nongnu.org, Jean-Christophe Dubois , Christian Borntraeger , David Gibson , WANG Xuerui , Laurent Vivier , Richard Henderson , Markus Armbruster , Sriram Yagnaraman , Bin Meng , Ani Sinha , qemu-block@nongnu.org, qemu-arm@nongnu.org, Thomas Huth , Jason Wang , "Richard W.M. Jones" , "Michael S. Tsirkin" , Hanna Reitz , Corey Minyard , Alistair Francis , Pierrick Bouvier Subject: [PATCH v2 45/48] qobject: remove return after g_assert_not_reached() Date: Thu, 12 Sep 2024 09:11:47 -0700 Message-Id: <20240912161150.483515-2-pierrick.bouvier@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240912161150.483515-1-pierrick.bouvier@linaro.org> References: <20240912161150.483515-1-pierrick.bouvier@linaro.org> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This patch is part of a series that moves towards a consistent use of g_assert_not_reached() rather than an ad hoc mix of different assertion mechanisms. Signed-off-by: Pierrick Bouvier --- qobject/qnum.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qobject/qnum.c b/qobject/qnum.c index 2138b563a9f..dd8ea495655 100644 --- a/qobject/qnum.c +++ b/qobject/qnum.c @@ -86,7 +86,6 @@ bool qnum_get_try_int(const QNum *qn, int64_t *val) } g_assert_not_reached(); - return false; } /** @@ -124,7 +123,6 @@ bool qnum_get_try_uint(const QNum *qn, uint64_t *val) } g_assert_not_reached(); - return false; } /** @@ -157,7 +155,6 @@ double qnum_get_double(QNum *qn) } g_assert_not_reached(); - return 0.0; } char *qnum_to_string(QNum *qn) @@ -173,7 +170,6 @@ char *qnum_to_string(QNum *qn) } g_assert_not_reached(); - return NULL; } /**