From nobody Sat Feb 7 09:19:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1602764128; cv=none; d=zohomail.com; s=zohoarc; b=YmcsvZVZWXCa5lNfnxdX1mV6QsY60usWxSFJ4TSbOYl160/+J73mymV62zZ5v+waPsWdYYZwB7WlnBmcQwu3q4HmfW2seNYNJL0ZfE5Y6P4wxWoHgrMnmcQJZxPz4AcnEk8TTlMLjke/QkYcpiBHEERBD/QQOy8A1FwY9czjTzQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1602764128; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=dQmz9rhOlDq0/v2hbjxNx9h96+dAcVbZNubb/iXznIs=; b=YwQzTcOBwZxSREF/hyQztngupGB0rV+0P1W02rCBCNaBz8hb7Kr7ahRPrixS0mQVoQneBOEkop+iHSJQ6o7fSx0IwhJ+ehL0YkWDugfjln0p7i4vDoW+kB1kCQNDDFfwslaoMmEQYw1RcsFIaH8ttH0nd2lx5+HnmW90W8dxXAo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1602764128537544.9685185003336; Thu, 15 Oct 2020 05:15:28 -0700 (PDT) Received: from localhost ([::1]:44678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kT2AI-0005R3-8C for importer@patchew.org; Thu, 15 Oct 2020 08:15:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kT29E-0004my-V9; Thu, 15 Oct 2020 08:14:20 -0400 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]:44359) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kT297-0005z8-HE; Thu, 15 Oct 2020 08:14:18 -0400 Received: by mail-lf1-x142.google.com with SMTP id b1so3287896lfp.11; Thu, 15 Oct 2020 05:14:11 -0700 (PDT) Received: from [192.168.167.128] (37-145-186-126.broadband.corbina.ru. [37.145.186.126]) by smtp.gmail.com with ESMTPSA id x8sm970036lff.222.2020.10.15.05.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2020 05:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:user-agent:mime-version :content-transfer-encoding; bh=dQmz9rhOlDq0/v2hbjxNx9h96+dAcVbZNubb/iXznIs=; b=piCUUFbyoL8Ed8g0hah127MyF62P6+tx+NjUy8QnB2rakG+vYa4M337ryABTzYSrFH mp0omeHkoSFd6qZyzlOcnUDTSKBQmL7EuDIGtokqJHbbA0Izio11nnX3/zWs9aduAdok B1uZ3SWX0TO/Knxs8QwFXKiXQzaq/xQ9bd8TE5IkucXlfX1Rpvh6WF8TFdm9XnOrtC++ +ldk0onjhfNOtwR0MRNFrCRtJSrANxv9E2NvwnqvJqMvBsu93i920jCK6msMoy5Rgjk/ jdbEKn4OMHTlR5M3Yi3rWNNkc2NsuRxLH5OxaURL7jYXWI3On5kNPBpv+dBrvd1UGvj9 qIbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:user-agent :mime-version:content-transfer-encoding; bh=dQmz9rhOlDq0/v2hbjxNx9h96+dAcVbZNubb/iXznIs=; b=jgGO2u/ISuiV0VXJ/pMAgom/cOEaDLWmBvLaK5NmGP2xZPE5JWxidboZD1+BY8CZCv 7agRmg+CN9Pk4ZJ8eeDRmFEr0RZYJoAkdqnIECWqIXi/rr9QzXjB3mpLDnvu1mnSHaSU ERanOMHw2aYqG74MwAAtALgYZuLFKxkJTNLG3h2E4mPuIaR7noxKS6+OBgMy8rqu2+j9 9G//Ej8v1K7aY1pZ3WlhAZvcjDuBIgZNFM4ywhZh/f8x8HlWE5shoyg5Egvzk8/svFL6 3bkgILHAq5TDJO5BKIcWkvYBwgYs0d0+FXciOnNVCtmfN/IBo2TjjVQI/A/wGoqtyqnt 39zw== X-Gm-Message-State: AOAM531WiDpHqQDELnKYIENvveNnFRvKD7ao4o42a70+noY8478uUbE0 Tfva3A12fvCOmI3VWRB66ZA= X-Google-Smtp-Source: ABdhPJwl+ckbQwZ5A6+trQDL3DF17h3m15WGRm1C+FykN+9z8Etyom+fr9XFodGBjqNjp94cGojoLQ== X-Received: by 2002:a19:7917:: with SMTP id u23mr974577lfc.543.1602764050366; Thu, 15 Oct 2020 05:14:10 -0700 (PDT) Message-ID: Subject: [PATCH] block/qcow2-cluster: remove dead code From: Elena Afanasova To: kwolf@redhat.com, mreitz@redhat.com, qemu-block@nongnu.org Date: Thu, 15 Oct 2020 05:13:54 -0700 User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::142; envelope-from=eafanasova@gmail.com; helo=mail-lf1-x142.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, 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: qemu-trivial@nongnu.org, 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) Content-Type: text/plain; charset="utf-8" Since handle_dependencies() returns 0 or -EAGAIN the following case can be = removed. Spotted by PVS-Studio. Signed-off-by: Elena Afanasova --- block/qcow2-cluster.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index aa87d3e99b..e2e0db0cc9 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -1806,8 +1806,6 @@ again: * structs before starting over. */ assert(*m =3D=3D NULL); goto again; - } else if (ret < 0) { - return ret; } else if (cur_bytes =3D=3D 0) { break; } else { --=20 2.25.1