From patchwork Mon Feb 27 14:01:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 657023 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2373089wrb; Mon, 27 Feb 2023 06:13:02 -0800 (PST) X-Google-Smtp-Source: AK7set9jNnQPhP7JJAvmTQVTo1EbpD/E8jueJ+EVrOpFThSNC694PNmykt8dTZXQMW06BgYUnz70 X-Received: by 2002:a05:6214:b61:b0:56f:820:6703 with SMTP id ey1-20020a0562140b6100b0056f08206703mr49419955qvb.43.1677507181923; Mon, 27 Feb 2023 06:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677507181; cv=none; d=google.com; s=arc-20160816; b=Wxl8Q+2iMhKzW0MBYln4ftN2gBRhi+1k0GIrg5vbdDOTFB4irQvz9zcUD5f8v+cfNE Y0CzoBWMuIy4AFlAMEIds5bZiXtLgeS7U3xneOSNtAt6P0YbPRb2IKNvJDk5OFKUYx92 DlAV/ILWHT0Ftqd6/45NhfC+M9UyZ/CzHKnFQ5tnTFnaXMY2pWXF5p2yI6OgWZj1oU2P bHg0DdL5GKL4clMCB+6GrRDBtVC8rGaEQ8BlyuzPQWxAume3v2xfrJChm+/WI+B20UM+ VLVQLKLcq+CSARBLquOp06he8bXa8KMaXZYHNDR0K6DhxJSVxnCfGTBjyFjQTHBmwv8o J26A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=EzB7E811R8ZHY7qXERszEqu5NK1F8fYg7SHHwSsZGtM=; b=tpYVUpX178V4J8ngMZzQ0ZJCKBcCj9FlU+kQ+9ey3+BWuF63rVgjUSkn6PU/id4ldq GtcHmCGOc+6fRxm79kmYmqXS6C7O/ykUoaAvDM4S8qWqLjbSApgwlRiRU1ctI6ay8WIs qVGq7BQM8uIvzqEGAzVDSMfXle7/ZvpDvtP0wotQ10Nz+pDScWPewTJQrLfB5h9yXAeu 7sUpZZHfUFzuNcjZv5PGrJQl/9zuI5YB7IZL9RZ0a6pND9/FHtWScxeTbpAV/S0UvU9I FX5hTTDL2aiStiBIRWTGLiN148hv2W3abjfzGikFOJHIzooU8cLGJ5zr7l5F59KWCkkw 7jGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iPqXnnco; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id a204-20020ae9e8d5000000b00719e7d0f8fesi5506458qkg.454.2023.02.27.06.13.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 06:13:01 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iPqXnnco; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWeCf-0006Kt-93; Mon, 27 Feb 2023 09:10:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pWeCU-0006FS-Tw for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:58 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWeCT-0000fN-7p for qemu-devel@nongnu.org; Mon, 27 Feb 2023 09:09:58 -0500 Received: by mail-wm1-x333.google.com with SMTP id c18so4312483wmr.3 for ; Mon, 27 Feb 2023 06:09:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=EzB7E811R8ZHY7qXERszEqu5NK1F8fYg7SHHwSsZGtM=; b=iPqXnncokRKjtkkGO8s8NIfLAVXBGdfHMF6ylMFU8q9kbfoHbY/lyJPaGaM6AN4LoT QLohqp2viNpR+l7hkBoAbetetpBJLIMC5R24Eh5s90ZGg5+aO/2HIoZCtF2FrNRJ1ArJ azRlmZOJGuOOXMEjd7ypDVAxm/QU5B5ADmeiCXHDLMfzsY12o6NQnv7FhrK0v6RCGwjb SJEeINU4Sh6w+r0xdxXAxAysyHcNZCJWvakxOBd0uw5ZZWy0b6OEmRtahIeRaF5M9HmI UIL+ZBY3uihkC3KGdaqpu5HhOqjPtS6KKkV25e3M+qapQRoGr0eK1SX+VaQmAS4IjNU2 F4Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EzB7E811R8ZHY7qXERszEqu5NK1F8fYg7SHHwSsZGtM=; b=6gw5c0ohA8M4SlV9HbGxpqMqOYMGieKIyRUvpzP0KjQj4uTQZUZwbiVBNTk7ZP2toP lSxzmALgbZbmxAke+pTDce6SCkwF+eNU2FeCIZ+obqQm5rr/30NiZBZ6orxpTJT92hlD 9OVLgMKnROZG/e5mzUM7gBsFokEOwfKqaBG/iHmsVWwXTh9Ot2gV1mC93X28rhDLsxk+ UlSxdbxr6RpcnRX7ZXM0vMp3w6Os5XrgbPfeC0ZASpgJ94P335G/XMSLN4ZjRxJ9ragx Zmziwd79mMjGhuw2oiizsIGmyZZvkLDHa76KbxB22X6Ay1Y8zZV+KbIvzWkV12NZUQnw ZhNQ== X-Gm-Message-State: AO0yUKU+sqjNMcaYzm97t9ESas4Dgn9AXWJQNBvG+/T7iNow/+Zx1SvV NXQtVrzjMBJeGXP0p/xqnwHgeFYtX2R+ALml X-Received: by 2002:a05:600c:4a9e:b0:3eb:2b88:8682 with SMTP id b30-20020a05600c4a9e00b003eb2b888682mr8277989wmp.17.1677506995444; Mon, 27 Feb 2023 06:09:55 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id az11-20020a05600c600b00b003e1202744f2sm12676140wmb.31.2023.02.27.06.09.54 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 27 Feb 2023 06:09:55 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 094/126] block/vvfat: Remove pointless check of NDEBUG Date: Mon, 27 Feb 2023 15:01:41 +0100 Message-Id: <20230227140213.35084-85-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230227140213.35084-1-philmd@linaro.org> References: <20230227140213.35084-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=philmd@linaro.org; helo=mail-wm1-x333.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since commit 262a69f428 ("osdep.h: Prohibit disabling assert() in supported builds") 'NDEBUG' can not be defined, so '#ifndef NDEBUG' is dead code. Remove it. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230221232520.14480-5-philmd@linaro.org> --- block/vvfat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/block/vvfat.c b/block/vvfat.c index d7d775bd2c..fd45e86416 100644 --- a/block/vvfat.c +++ b/block/vvfat.c @@ -2784,13 +2784,10 @@ static int handle_commits(BDRVVVFATState* s) fail = -2; break; case ACTION_WRITEOUT: { -#ifndef NDEBUG - /* these variables are only used by assert() below */ direntry_t* entry = array_get(&(s->directory), commit->param.writeout.dir_index); uint32_t begin = begin_of_direntry(entry); mapping_t* mapping = find_mapping_for_cluster(s, begin); -#endif assert(mapping); assert(mapping->begin == begin);