Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp272975pxb; Thu, 25 Feb 2021 02:01:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9YMj6Sv5Ix4f/KUU9T2crstZSd6iYc+4lDVsF5lCmTp2LCqsDD2exREpu1C7i+E1jiHjb X-Received: by 2002:a17:906:a1c2:: with SMTP id bx2mr1961995ejb.138.1614247302114; Thu, 25 Feb 2021 02:01:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247302; cv=none; d=google.com; s=arc-20160816; b=SYnostqUFc+kq/ASP9C0V7v+7VwnFoe7otzRcfwWd+oLV6CoX7ppuNjO95cCtGUGMp rRA+ne0eLGXtoiNCnEviaNyS7aIfl7cgXpMPpIyKTbzE2rUbwxIHbDdzRbRSW9t2954F /4lp/dv0uKsPhacRDN6R99AiQxE8MDuwwsj4uaNxYH8GsfS9Q6iNxYLnYHudrtBePkco 4XvOQl5qvNjZ6VWVwo6j3l4wCHsMMb1M7C0q1uioCZ2jaZrNgtMtwPUjopkl6p7CsG/A pqQP0AiR2XrDJL+W54Cvg43QtxVWkFPhcezF4LMLk8N6HVDHDr8F1zq5ab9WptAfYI1L 5e9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=tSewBQxcW8Z77OzwNIvZNiKkOafkhuwmpStoSzpcefQ=; b=tXyF0HGCyRjp2jquhpIui2cInkjUXbmLjH4im4D0zhd/9T2LPxj741wv9Ltx49CFIW g8p9kGJ9tkYrWBcliRB1GNgEvWRe/RW5klNxFI7HCkP5mx9waRvFS+6iXE5hfPEijfBQ b5MrkzD0RSkFT4pvwxQwkKlPniwbLG/auSTkkmCF6/4bH1LfaFOEVEBagdUH0d6NS0Ut e8Vw8CkYMxJH20x9Lrz7CuLbvqDSu0dJRVB748uy2oEKkCekssq2CuSq3pzOLXbCnPkc aQOY43wl4xLWhnJgL+UYdyxAjObO0fKXQYsq2vAxzmUJGTctd7diTCAlxXItJJ2jGJxC 8gRg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si3248738ejo.142.2021.02.25.02.01.19; Thu, 25 Feb 2021 02:01:42 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232113AbhBYJl3 (ORCPT + 99 others); Thu, 25 Feb 2021 04:41:29 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:35450 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233755AbhBYJkl (ORCPT ); Thu, 25 Feb 2021 04:40:41 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R681e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UPXi4Du_1614245992; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPXi4Du_1614245992) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 17:39:57 +0800 From: Jiapeng Chong To: stanimir.varbanov@linaro.org Cc: agross@kernel.org, bjorn.andersson@linaro.org, mchehab@kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] media: venus: helpers: remove unnecessary conversion to bool Date: Thu, 25 Feb 2021 17:39:51 +0800 Message-Id: <1614245991-82986-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/media/platform/qcom/venus/helpers.c:585:11-16: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/media/platform/qcom/venus/helpers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/qcom/venus/helpers.c b/drivers/media/platform/qcom/venus/helpers.c index 76ece2f..35091c6 100644 --- a/drivers/media/platform/qcom/venus/helpers.c +++ b/drivers/media/platform/qcom/venus/helpers.c @@ -581,8 +581,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; -- 1.8.3.1