From nobody Mon Feb 9 01:16:18 2026 Delivered-To: importer@patchew.org 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; 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1584802048; cv=none; d=zohomail.com; s=zohoarc; b=Owz7o00v3AUy2d7VWWAcGINDTuCZQGBf/AYcuRm/zmzQRjp0yrOhviXAlgXgTPPo1YVsweR5saMzfz4bi9G5NV4ppQsvBEps6fj3aedoHDzn1Xjih3qR0flBYt9TXW3EFKT0OlIuJbSoUcbN1ZYGDCUPOtExdkRfYPiWMdzXEgA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584802048; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kQDd9EbUfb0uuK6iIsTzZMSp5qbZytglJrEh2QYroHU=; b=nWki9HF+/DHrYWrEx24U9Mr+gQh7468sSmjJbTcBVrIe1R7PMKorH7mUC5LaQcpOV4X+lC4JSMZ/10bGsV2ks92vlNfkMoNM+cvyGAYTSxhDI3odHHGchWqoD0G6htQnh1xqyAWWQkyUJXCslcbAze7aoU8vgxFvGgiY9WTWOx8= 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 15848020480681019.5228503515089; Sat, 21 Mar 2020 07:47:28 -0700 (PDT) Received: from localhost ([::1]:37692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFfPK-0004my-R3 for importer@patchew.org; Sat, 21 Mar 2020 10:47:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59796) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFfJk-00050H-E1 for qemu-devel@nongnu.org; Sat, 21 Mar 2020 10:41:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFfJi-0007M5-BX for qemu-devel@nongnu.org; Sat, 21 Mar 2020 10:41:40 -0400 Received: from us-smtp-delivery-74.mimecast.com ([216.205.24.74]:51732) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jFfJi-0007Lm-7y for qemu-devel@nongnu.org; Sat, 21 Mar 2020 10:41:38 -0400 Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-445-DEzj9Qg3PlWiDPks3I-vTQ-1; Sat, 21 Mar 2020 10:41:34 -0400 Received: by mail-ed1-f69.google.com with SMTP id b100so7621968edf.15 for ; Sat, 21 Mar 2020 07:41:34 -0700 (PDT) Received: from localhost.localdomain (37.red-83-52-54.dynamicip.rima-tde.net. [83.52.54.37]) by smtp.gmail.com with ESMTPSA id a32sm603046edf.46.2020.03.21.07.41.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Mar 2020 07:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584801698; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kQDd9EbUfb0uuK6iIsTzZMSp5qbZytglJrEh2QYroHU=; b=X5DWlbPA32zOoZTe9yhVtJqQr5j5lfZaeugrncoTuhfkDfRcpkZzyNPZrBaEqVySp6BrBT e2EVszv+80dMNGj5Cr11CYCM6JkqkZuxgCQ+RTl/knvYbboBT1wwLuJ50yJugnKDffL7nA +C5HLnB6QMb6kTocUkvK1YfNXWwrK5k= X-MC-Unique: DEzj9Qg3PlWiDPks3I-vTQ-1 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=7jHPzgLUxabSngeicFYbktzokTE6KbRJJJ5XQsCuGXA=; b=jxi36Zjh290vVPqC1jxJsS7AyrI9N2ZB+gXm9D3whCtq+46YwBCEuj0xjNbwXLeZJs oN/1XczXsVNIU5eCJBDRSFmwR8COVMBzm1WRlmqAfWjTvdBfDaXIyRqXzu0c18WAdnGv 6ixI++IxrW/Tu0z55Np0/P+8mCJuw89h4JP6amf7RAxLUky3F7Glz0VJc9eXmxyHI3OM anX1NnDaFMboJtAAsTgfudvWOgCqg4H5ji8YBrAvtq52aaFEtxbh7xB6J5WA6TqF24uL xoTzcT71RsknAIyStgCmPcVyKRWAbdgFXMfq+vNlt8/dNxoZztde0RBeyA2wzCcAhqq6 6fQA== X-Gm-Message-State: ANhLgQ0jAEbF1LcRBRDUseKsrUQseAydtGJn40JKaaUqos20eSdkxuz1 PN5oMitkN0TqyeNZLlbPxQ+oViTplbvM1cO7InvJpfhJEQ3P9ZHED7zYeUMoS75tPk6c211Y6/x c34eD7R6zvsC8s0c= X-Received: by 2002:a17:906:7007:: with SMTP id n7mr13189133ejj.108.1584801693281; Sat, 21 Mar 2020 07:41:33 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsksJysO+mxl+t+W2X01D8GMrkrubmik0/M6jdDivq40kM5YY8jnEGED6sR24r5kt8kIt2ovg== X-Received: by 2002:a17:906:7007:: with SMTP id n7mr13189101ejj.108.1584801693035; Sat, 21 Mar 2020 07:41:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH-for-5.0 v2 03/11] hw/i2c/pm_smbus: Remove dead assignment Date: Sat, 21 Mar 2020 15:41:02 +0100 Message-Id: <20200321144110.5010-4-philmd@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200321144110.5010-1-philmd@redhat.com> References: <20200321144110.5010-1-philmd@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 216.205.24.74 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: Fam Zheng , Peter Maydell , "Michael S. Tsirkin" , Mark Cave-Ayland , qemu-block@nongnu.org, qemu-trivial@nongnu.org, Markus Armbruster , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Joel Stanley , Michael Tokarev , Alistair Francis , qemu-arm@nongnu.org, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , John Snow , David Gibson , Kevin Wolf , Andrew Jeffery , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier , Max Reitz , Igor Mitsyanko , qemu-ppc@nongnu.org, Paolo Bonzini 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"; text/plain; charset="utf-8" Fix warning reported by Clang static code analyzer: CC hw/i2c/pm_smbus.o hw/i2c/pm_smbus.c:187:17: warning: Value stored to 'ret' is never read ret =3D 0; ^ ~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis --- hw/i2c/pm_smbus.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/i2c/pm_smbus.c b/hw/i2c/pm_smbus.c index 36994ff585..4728540c37 100644 --- a/hw/i2c/pm_smbus.c +++ b/hw/i2c/pm_smbus.c @@ -184,7 +184,6 @@ static void smb_transaction(PMSMBus *s) s->smb_stat |=3D STS_HOST_BUSY | STS_BYTE_DONE; s->smb_data[0] =3D s->smb_blkdata; s->smb_index =3D 0; - ret =3D 0; } goto out; } --=20 2.21.1