Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7063839imu; Thu, 27 Dec 2018 11:31:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4q7zg4o4vIG8nNFLHt10pX7Hf1XF7p4P6x3Ia012UpMiwGlFKv02go2bgEdZIao3T9Mr/o X-Received: by 2002:a17:902:9a98:: with SMTP id w24mr24924076plp.213.1545939098329; Thu, 27 Dec 2018 11:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545939098; cv=none; d=google.com; s=arc-20160816; b=Z5cnpATpCbFZ5LMVb/RgSWZKfdRyXIH7vLTsDDfefpsNWtYGh8dqCNyHDw90OYhJLk rSt6U50By2OzWDNR9uFj7Fjzm3oS3PEPhiJqIgbTBtbLVpE0nPg+pD/wa0uq68WnUnPS DEg0wWsNmhS4bLoYikXnjrKE/pnTj5nJc9rWOe87zmHyugKzk10g/Q/Q8eVBUqC6tZw0 fdnskc3zQzshxUcF4tyvvL3rWP/aZjRYfYEeYzQD7SeGeQmRBmjmGu+aYmYRthHyA+PD SRdR9/sgs4X0NTrlbXfHfnqlYbQ05i4MOHaQHKgft1dOoMu9CBvpNJGBnc1HB0WOi+N8 2AkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=CX/ZEHUzFs9jBs3ypfGJ4WLCQPJRCR6RWbEk7qXirqM=; b=GJuE+L7xAFwvCav4eeq8mrErqZA0VD0dvuj93IWX5vtQIlaW1rsU8DLb3M7FcfP+yJ x9rrkB/2XUlqbYiKn/34G53wfHgRPBUvpehXon7AAHKD0HfBsWidk3YRuXOEuFxtQtk7 8Rar6Eu3WA3EH3YTedtti4awpMIetX3y7Ps4N9SZARSOJ/Wlbm36mCXzm6dTM6P0M5KW SIW3/6ADCSX0Yik/4RXE34Eb85LENX5p7G93cQIgSnGgNhxeCpH/3v8y/Ec7uXvzcsOj IG38HjCWqF0xubvXBjhHZU/XDo+rlrhy9E2cn9ZnIloICOr0ZouhKA9eeqHqQO5XLC9m UgVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 10si3182988pgk.101.2018.12.27.11.31.00; Thu, 27 Dec 2018 11:31:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729259AbeL0GBh (ORCPT + 99 others); Thu, 27 Dec 2018 01:01:37 -0500 Received: from out1.zte.com.cn ([202.103.147.172]:33588 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbeL0GBg (ORCPT ); Thu, 27 Dec 2018 01:01:36 -0500 Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 19DB27A21E19AF38F022; Thu, 27 Dec 2018 14:01:33 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id wBR61QKn017328; Thu, 27 Dec 2018 14:01:26 +0800 (GMT-8) (envelope-from peng.hao2@zte.com.cn) Received: from localhost.localdomain.localdomain ([10.74.120.59]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018122714015542-19046726 ; Thu, 27 Dec 2018 14:01:55 +0800 From: Peng Hao To: pbonzini@redhat.com, rkrcmar@redhat.com Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Hao Subject: [PATCH] kvm/eventfd : unnecessory conversion to bool Date: Thu, 27 Dec 2018 14:22:17 +0800 Message-Id: <1545891737-84095-1-git-send-email-peng.hao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-12-27 14:01:55, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-12-27 14:01:14, Serialize complete at 2018-12-27 14:01:14 X-MAIL: mse01.zte.com.cn wBR61QKn017328 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Conversion to bool is not needed in ioeventfd_in_range. Signed-off-by: Peng Hao --- virt/kvm/eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index b20b751..d4cdc9c 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -723,7 +723,7 @@ struct _ioeventfd { return false; } - return _val == p->datamatch ? true : false; + return _val == p->datamatch; } /* MMIO/PIO writes trigger an event if the addr/val match */ -- 1.8.3.1