From nobody Tue Feb 10 12:22:39 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588882032; cv=none; d=zohomail.com; s=zohoarc; b=nlMoWAl/5iFVBGmQH22vKufc2tH6JRzoct7de4726jPSYowGsyYOXjaLDp9hcMwPVDYH6zs/30zsn/1aXe/V6OA5J2dwCpM3YefSo2r8/w7NZpgLCmr5ah1KjDpDgRk9IPoTgexvJdnXF9a+rVt4HBoic+zl7CKBYJgc4Q7b/M8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588882032; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=UsVrLH10VrnwJQa3T0/DmLttPhHiMDiEHKItwQOxx8k=; b=KRJ3qTpFWp8EpKlHkn2uubYjDitCV3oj8ZgZVoxeYrMqeiPMYUTiNrI49cB1v+9sPVUlvl1oYf+O8krxuTg1FOvyDAbr47k/FBs+5QwF0Lwl4lHYsMT46e2yxj+6yJfZkx+vBmT/zd0dFmUHFmpJRL6t8DEqzYNRwhzct+SpWao= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1588882032922628.0967511717978; Thu, 7 May 2020 13:07:12 -0700 (PDT) Received: from localhost ([::1]:54708 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jWmnX-0000k0-B0 for importer@patchew.org; Thu, 07 May 2020 16:07:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jWmms-0000K3-Qz; Thu, 07 May 2020 16:06:30 -0400 Received: from mail-il1-x144.google.com ([2607:f8b0:4864:20::144]:42200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jWmmr-0006br-TM; Thu, 07 May 2020 16:06:30 -0400 Received: by mail-il1-x144.google.com with SMTP id t12so2890756ile.9; Thu, 07 May 2020 13:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=UsVrLH10VrnwJQa3T0/DmLttPhHiMDiEHKItwQOxx8k=; b=Y98V1p9ni2qBeYG5aE9BfaNxuHD201ux5KkijNRt8ortzHfq/+ZSj6w3FjrHD+GqmI LgmW8WpIrn0gdy9ATMoQQxKLk3LhZBiQ9bHi6SW3/XMLfiffYd213mkKsrAgboqxtg0M vP2w6m3Nl5Iur8t+aZEkSfw0hMeEI5w5lGFilQtUfn1rpu60NPKe/xWwUPTcm0Ym1XTi VsGvx0QsgxveL14fbPFGb5FOZnz++79Mxwzp/CK46BF956Xg91aaVpnwoFQYQ4dLHAg0 us1B81YVBoCWrmMX7RBTaZ87DkI6lrJId1KkCQNcV9CJkQ6BX6V7r23uhlAUfPqxlFO/ nJLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=UsVrLH10VrnwJQa3T0/DmLttPhHiMDiEHKItwQOxx8k=; b=uh+TPSWpSPqxdBLaaBJ6YThgM/2K5oJtgMgs1cCnGazuo+Ul83eiA+NAR3Vg1Vv6WO ShIb0DnVEFHy+dcoYh0WFCa94Pmzc6WXNb2vEzzo5v6UPROiT0mY/dLSVT7/Xgj1qCMU ul7gkB5pwgb684yy8/QRYzoNhw2K8xcXIL5ZIfZJG7+uTtXcdFRZnOFbihwU4zFdsAvZ qQwmHtFEwgXyZ+CWai0A7mEDhdLiql/4Nk9F6+9bD8+cskh5LmmAw5NZAvCc0yxxZTxF Iazrb8+bY3g5AA001xPmUUJe/omAJlnNpU4ou4q59g3SNsu3i0vwE3hBQq9n8pAwv05c 3jjw== X-Gm-Message-State: AGi0PuYTBJeWaT1IsAiINeZBKrPPYrZGBuwfF8fluNnie24ZRsV+l9/s /pLpB0Jab9l91crlUp+6GTlsq+kGGfkIdn7w/andQPApBfHDaA== X-Google-Smtp-Source: APiQypJsbW+/rYVV7BOLtIm2mSe2FCSduu+zYHB37JhBZyY9htOqpUh0o1yb7XMJ1fsdv+fgcFQax2tOEd0W1j41E60= X-Received: by 2002:a92:cb4c:: with SMTP id f12mr17225133ilq.263.1588881988086; Thu, 07 May 2020 13:06:28 -0700 (PDT) MIME-Version: 1.0 From: Raphael Norwitz Date: Thu, 7 May 2020 16:06:17 -0400 Message-ID: Subject: [PATCH] Fix erroneous double negation in conditional To: qemu-devel@nongnu.org, mst@redhat.com, qemu-trivial@nongnu.org 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=2607:f8b0:4864:20::144; envelope-from=raphael.s.norwitz@gmail.com; helo=mail-il1-x144.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_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @gmail.com) Content-Type: text/plain; charset="utf-8" In vhost_migration_log() there is the following check: if(!!enable =3D=3D dev->log_enabled) { return 0; } The double negative =E2=80=9C!!=E2=80=9D is unnecessary and bad coding styl= e. This change removes it. Signed-off-by: Raphael Norwitz --- hw/virtio/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index aff98a0..83be0c8 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -814,7 +814,7 @@ static int vhost_migration_log(MemoryListener *listener, int enable) struct vhost_dev *dev =3D container_of(listener, struct vhost_dev, memory_listener); int r; - if (!!enable =3D=3D dev->log_enabled) { + if (enable =3D=3D dev->log_enabled) { return 0; } if (!dev->started) { -- 1.8.3.1