Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp634699ybj; Thu, 7 May 2020 04:10:30 -0700 (PDT) X-Google-Smtp-Source: APiQypI981xY4uIrUxLes2oH5oWg94V9pseG5jhZY7ou/dfF7OvvoHvTJ8FqGq1/ZogNpwI1Ow/P X-Received: by 2002:a05:6402:88b:: with SMTP id e11mr10894966edy.176.1588849830266; Thu, 07 May 2020 04:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588849830; cv=none; d=google.com; s=arc-20160816; b=Tn3anYXyjgbaJ0hFOyxVYcBrnVZk4ARdcDCTnH6PH8sZXL60QbnEERNgqnL/fdaUvI jQUyLVC9cgwPVr3rzgW1UnehCnmpRcDbDexLju8IEQVVrDmreAn+naWY8U+F3SYfGaDX fuJ2nTmXP7EGuqfIW0GOAoSw1D7QZ4zs9GNEjj7tpz/nWoRNsFiH8XLf3NRmALbsuhuO QfVqqZV4hzo5hsk8rFLk06HSBwETYrxxAZIEN+c4UsByPAKqu00VkVRvyfbwqZGFiSYn Qe+RuQ8k9HXRSRuyWQisae8m8jZxbMQg87OvLRrlHrx0BJ+FxSfVl7ukrm5xNp2GjTS6 09Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6BVoyVDQmz/q//WiPn98HlWKszF6XFr5SmoSBykrgns=; b=e94oLXbN5AiwXAut1Qq2TxfeG0pHXOI2ohLAZWyVUQywQBC7V6pOvrK1WxXfoXQOqz 9wJDnUHcNLfc0rdNJZfeB7xgB7Ugv36LzX6Tw0sMRqT+wde2VqMauqwEwL/gAs3edhfN pDGPlI2/Byt0XmNzGxWGpXWuSX0JPO/eCvhz9JSIJ2z5MeRn+T/29JDDaoAIvSs59Tyl XvIcLYYgefOS3aNCGOUwl4FdzwUG2hvxuQSJMVSj3aUeLZtjmUeE7/uwOSgvnWZ3n8BA 9dH+twEIk4ouM2C0TC7Ls6JvVl/fXNIpwOEJfhTPLbb+yuv+lzGTVcMaqtjXW4PDhkwF 9Yqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si2955404edv.44.2020.05.07.04.10.06; Thu, 07 May 2020 04:10:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgEGLIE (ORCPT + 99 others); Thu, 7 May 2020 07:08:04 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3841 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725848AbgEGLIE (ORCPT ); Thu, 7 May 2020 07:08:04 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 0C346672F08BDD45CEBE; Thu, 7 May 2020 19:08:02 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Thu, 7 May 2020 19:07:53 +0800 From: Jason Yan To: , , , , , , , , , CC: Jason Yan Subject: [PATCH] drm/vmwgfx: Return true in function vmw_fence_obj_signaled() Date: Thu, 7 May 2020 19:07:14 +0800 Message-ID: <20200507110714.37589-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:518:9-10: WARNING: return of 0/1 in function 'vmw_fence_obj_signaled' with return type bool Signed-off-by: Jason Yan --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 178a6cd1a06f..0f8d29397157 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c @@ -515,7 +515,7 @@ bool vmw_fence_obj_signaled(struct vmw_fence_obj *fence) struct vmw_fence_manager *fman = fman_from_fence(fence); if (test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->base.flags)) - return 1; + return true; vmw_fences_update(fman); -- 2.21.1