From patchwork Mon May 10 11:57:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 433139 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2879192jao; Mon, 10 May 2021 07:09:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3FudjHbvoorYCA/pQEH+yloBdNoCbyMULtv5j2HpCOw2hZmjQwfMp/RBQnThcFxkfk3SJ X-Received: by 2002:a05:6e02:1063:: with SMTP id q3mr21948704ilj.52.1620655751913; Mon, 10 May 2021 07:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620655751; cv=none; d=google.com; s=arc-20160816; b=Mh4DXqrYpbIaXOh2bb9BkiorJvih4y1HicbQ49EyiMTFQiLHiwGiw7nBer2gxXKeGD m9uGRK6+hSPPF6tFw62CQK9aFpwb0MKj+bLKDU78SlM4iJsljHLWfpyVOcgCf7s/qbLy 83YizR31uYrBoQ61WSrE/XqQtrkEho3rrTq+qs6PhZVK0N1NLOVUhBtpNmYMmZ4pT335 yvnyOjlNgR85B7vAcgpgTQYQz8c9OxnwHWg00rCfAhC+AWmkmmODC0YrM9ezS/8UV1r1 SBz4iCb+Chcu7+8buA4uk1qOEG/mBiO3kTkGPfr0vZoSCsUTkje7MEOeB10mMOciQbuD mXPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CkTX/YlanKohgW1MgNI/CcCy6WOYwFFPlgtTC1zTeLY=; b=f9iTwXQFDRdtjppZRbgX44y736pjPZUo2V2WXUqVvWKsS7ibb6R0cMNJbg3DeAe0T6 668508uVlwDzaeDRTG0qJ9PS95LdQKT1GM8xih0fLSoOOZYzwj5F9/MBGcEaR0u8hnZG AIIfbR96Y4NjyUoCNAPXxFKUuiucKhH8Noj+iTrRm/NMeqkibS0/15dhMC+TT40SWSko YxDlbVWk1J6+SaOnLw8GUSYAToqbLHkAmv0TbjLdP+fV6C0nw9/jACcXYJjk9KEWVGxn PUStCovdLhbR5IEHZVUJ+tK2334Y6/jJypQzAiW3VkFP+w8jxRn85z3uW8NL7sELe56j C2/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q8si16406157ior.12.2021.05.10.07.09.11; Mon, 10 May 2021 07:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-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-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240573AbhEJNS0 (ORCPT + 4 others); Mon, 10 May 2021 09:18:26 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2616 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244589AbhEJL7c (ORCPT ); Mon, 10 May 2021 07:59:32 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FdzzM1jNgzmVHH; Mon, 10 May 2021 19:56:15 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.498.0; Mon, 10 May 2021 19:58:19 +0800 From: Zhen Lei To: Stanimir Varbanov , Andy Gross , Bjorn Andersson , "Mauro Carvalho Chehab" , linux-media , linux-arm-msm CC: Zhen Lei Subject: [PATCH 1/1] media: venus: helpers: Delete an unneeded bool conversion Date: Mon, 10 May 2021 19:57:52 +0800 Message-ID: <20210510115752.3580-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The result of an expression consisting of a single relational operator is already of the bool type and does not need to be evaluated explicitly. No functional change. Signed-off-by: Zhen Lei --- drivers/media/platform/qcom/venus/helpers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index b813d6dba481794..46ae1faf63ed4cb 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -595,8 +595,7 @@ static int platform_get_bufreq(struct venus_inst *inst, u32 buftype, params.dec.is_secondary_output = inst->opb_buftype == HFI_BUFFER_OUTPUT2; params.dec.is_interlaced = - inst->pic_struct != HFI_INTERLACE_FRAME_PROGRESSIVE ? - true : false; + inst->pic_struct != HFI_INTERLACE_FRAME_PROGRESSIVE; } else { params.width = inst->out_width; params.height = inst->out_height;