From patchwork Mon Jul 12 21:55:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 473140 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3342839jao; Mon, 12 Jul 2021 14:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJ7BAKsVklpZBB5ECTuflCBqSaR/jRusoIGxNBwI6UWAYbd4HVgxXX7XMFn1izyf6T5ezG X-Received: by 2002:a05:622a:1444:: with SMTP id v4mr966084qtx.143.1626126982677; Mon, 12 Jul 2021 14:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626126982; cv=none; d=google.com; s=arc-20160816; b=d1MJ2k6rXqPb80rKt0JBkOmvZBV44wfKyBDFzhq43dgzQC6VCIKWhYCbKlwUCgmh8T CGNWK3VOOCsUOEwVxaxT/rcC8s4Q6VtgwwCo75IWsdPZyoRuJjEesLtVJhQ3Rqm3oWzr idt/0U8R3OfY9rKAP5s0YlVRlnbpKf19bPikRv6epPHcae82hQuGpau9RBuOQfb9vEe8 KYsQDWmMIK1plNJlbNez5nKo5HFNMoWno0uN3kXSlbEzDEHmffkExsWH2yz5I8ELNX7w nI+QKW9+Yx4PVAh8zzJH0nkwqFPg+aA1u4mXn8lnkHtt55ChurgKzTsLCF9aXkTDWCaN yQfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=eQCPpxzcpO4GaGdSXH+DiDoO4vNQhMrJvKFSfjbCCClSegEeTa0KRVxOeh9WtC6ymT WOveva0+9hE8Y6Bvr0BpL6pfbbGr7NhuxHfLSwIpQpwf8qFp/t8CulQil1vtsgnlg90j FDYbj0ygNLXKM4jfxRq3JZvSzoouXb3t/YzJE6Bgk06IorLAzQ4VZbc4WcWp+j7MWA0+ JNR7YbbHk8AkX032UK90IZxH/FO+EBCOxKTfzevj9JuBt1kaAADM6fvnCTYXfuaVu1ij EXtbiFMzxMSTM78vrN/wXXu72jjtrBL8anytn7ZBmLy2a/GRw7a2Hy2tEGpGm3joV1P1 F8aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MsF0nG47; 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 w4si15279237qvw.53.2021.07.12.14.56.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Jul 2021 14:56:22 -0700 (PDT) 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=MsF0nG47; 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]:57282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m33uX-0000fC-30 for patch@linaro.org; Mon, 12 Jul 2021 17:56:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m33tw-0000dI-GI for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]:35452) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m33tt-0006sO-Qs for qemu-devel@nongnu.org; Mon, 12 Jul 2021 17:55:44 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d12so17722599pfj.2 for ; Mon, 12 Jul 2021 14:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=MsF0nG47M5aqYhAXnwIfjTxh2smNxksulcQ9aWTt7JACmfc/bKi1KqxujZceocHgJx i9XItTJbPehDzLilUM6OiP7S4VUu2agC9Eyd4GpFv+YIwwen/LkU5uxXNz2Mw0903vSA JOaqpkaTapG+hDJSMr+r9CbNCxsxoN7Frt8FF3p3Ik5lP9kKCbgTuUOSi1zlsxqQZ7RA vNc1/VhGrSYlgn08z1c56zKf8/aKjZzmXu0ZF94TtwJNOcfOhNmPhB4A1LsNN3GR6TjS RUOtBsJDvulmYZPrnrLhqZuoqonkr79ysGXIBZ0TF5hQkSmZ9YWFuLwyJViFI5b8uJvN T/Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Za/XDlquE+Ox0yxp6XpECa7y8aOcWlCnk1g4JpHt+1M=; b=c2EW7QiLMhBUoUkcwIOi3Uu99jCKQRk4PaQOscTxbU5en4kNTU/9OwLZHzp0FjufUO 3qx1+Rsvt+KmnWJ4/4NMVrv22fWiM3BXshnfZtZjigcJISkQfXa5mwweSgV/paFdNxgv 6octU4PmA1fhkhGPNDWz7WfCagsSWJG1ux46v6CapxOsaRqrpBOwVcF9cNOywsBX8Ehh l8wi0LZxd91V/sYIsisA0kt/SN+p2C6adFHGSU9vZSEOj/cSDCQS0GsgU0/LW9MKOEjR DiY9aFLiJaCND3mK6BeHiW+DrdS/YWiw2yuYSQYtvY6pJwSFyl9OU3eItH5Um+ZMVa+9 ZTog== X-Gm-Message-State: AOAM5304lOHzX859ncY+/EW7xs8mswh/EUuKTPJeBYa0wgeoLMTO34+3 fIGei9aEeOqibVSYXXUJ+pDvUcUUEMBUlg== X-Received: by 2002:a62:1d8b:0:b029:329:ff4a:91f with SMTP id d133-20020a621d8b0000b0290329ff4a091fmr1288786pfd.9.1626126940412; Mon, 12 Jul 2021 14:55:40 -0700 (PDT) Received: from localhost.localdomain ([71.212.149.176]) by smtp.gmail.com with ESMTPSA id d2sm376932pjo.50.2021.07.12.14.55.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 14:55:40 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 05/11] hw/audio/adlib: Remove unused variable in adlib_callback Date: Mon, 12 Jul 2021 14:55:29 -0700 Message-Id: <20210712215535.1471256-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210712215535.1471256-1-richard.henderson@linaro.org> References: <20210712215535.1471256-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42f.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" >From clang-13: hw/audio/adlib.c:189:18: error: variable 'net' set but not used \ [-Werror,-Wunused-but-set-variable] Cc: Gerd Hoffmann Signed-off-by: Richard Henderson --- hw/audio/adlib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 42d50d2fdc..5f979b1487 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -186,7 +186,7 @@ static int write_audio (AdlibState *s, int samples) static void adlib_callback (void *opaque, int free) { AdlibState *s = opaque; - int samples, net = 0, to_play, written; + int samples, to_play, written; samples = free >> SHIFT; if (!(s->active && s->enabled) || !samples) { @@ -219,7 +219,6 @@ static void adlib_callback (void *opaque, int free) written = write_audio (s, samples); if (written) { - net += written; samples -= written; s->pos = (s->pos + written) % s->samples; }