Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1168640pxb; Sat, 17 Apr 2021 08:37:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcsYwoOoWDPPZPFFwxVx1+BqmsSVjNCOhb+HlSvrhgK3Ilu5xaFRSdzH5uRj7nB/5hU5xB X-Received: by 2002:a05:6402:cbb:: with SMTP id cn27mr2224097edb.222.1618673875022; Sat, 17 Apr 2021 08:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618673875; cv=none; d=google.com; s=arc-20160816; b=DsX8wp/1jJdy23nPw3UkWigmo3hrE0W2BlrqznsFMDFkzO90c7D6RcjhwSaqkygFZJ yQ/jWqZAaMRBIugfZrwZjYXsFfTJGnxCQgaVQyFdJvh5KQTfmlEf52QRw4Lgx5wsznD7 1fhb/VAj95vsBar+at4CPgE6uv31RVwbEOcq9VAJoiRAPG/uxWNT3d8qsf+PsLPr95K1 wwPqy3CEVTWTzt2nG0zpF5QvaPMatGTIGN3P0kvO0IeTC44iFhIA86dwrSKS8igf+SqY s1wuFUOgcv5KRzvjkcSziXSXw34gquHy3fysOrd1x9SKlV/JnvbMyze4YXp5QSeOhzpw w8lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=D/05szO78c8EJq1ym9W+r9Xm4IHEEvxwkXiJ2BgsUcI=; b=IKv+/5UJ6Upk/vInfuBKQitzSDE9ZrA77ixoCn5P17KZj5kI2khPkztkOHAehafLIs i+34speAWSIGLztzhSz7+Pr/WiQJt0D/p6CLfTMNleu/mZZsOsDozpfY9q8CPhrIibl2 +qtovovrS7sWyFfOg6VQ5VGmouJSSx4YHU22ww8tjzBImx1oNUGjZRk8GSrIVdgq0yDK NxTD9ekuySim3VRhmEjkRH815pub4yjt7V4hh7JoO4cdZ8gw9Qi9Vw84WXsvjQBI/hmg X01H1juSZuwiJlAt+l3UGWErouQQ2lx7vSlP6WNaDImHNOSDjPugZin8s+8LpM84a0aL zh3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ok7VrOdF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si7505670ejt.333.2021.04.17.08.37.32; Sat, 17 Apr 2021 08:37:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ok7VrOdF; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236588AbhDQPhA (ORCPT + 99 others); Sat, 17 Apr 2021 11:37:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236287AbhDQPg7 (ORCPT ); Sat, 17 Apr 2021 11:36:59 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84515C061574; Sat, 17 Apr 2021 08:36:33 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id w8so16833722pfn.9; Sat, 17 Apr 2021 08:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=D/05szO78c8EJq1ym9W+r9Xm4IHEEvxwkXiJ2BgsUcI=; b=ok7VrOdFliNRvZPADXhbRfkawBFnWi8hF+qbhcL408j1O1CsdLTqdkaT2NunMt45B8 N+VoBizCnqx6dc6VhWoytC/kZwga6xA3m8vr3M9ECWTT8/fTM/C8dSNMJ4h7Daf8HPV5 E+FNBQY0vP9qd/Gb1PUaR/Iv4smpfs/UkZZOJKM5Z4Hko3l2LBNxyZEozolcC13994kO eNPYC7AT7zRvE4ejlzXzeNnegh2cBpiBFLgAE3YeXsayRKu7UYe6HqPPmRFRz5lSL8GU SwJY1wyqBcJrcE7JpEyzrhHpvSixPsKk1U2Eyq1TeRDX81u9pUvxWJVv7UM9vixbMMTn XHTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=D/05szO78c8EJq1ym9W+r9Xm4IHEEvxwkXiJ2BgsUcI=; b=a/7nj62UO9/TCC4Y98dWEwiOqKVKgCiZBklvAXae9orM/iG5IVoQWvkU+hRIHc83TT CateWqgs0VUDv73HIzsQ2nJWwY16ysDGlj9YkLOsRHbgeg1jXHeKjtC7m3AReMj3FbZu Raua5GXEF5AvzNtITmh9cBAojDt3pACSqZZD0YOkABLpt0biTORfbh9uUDYJ9YRTcf/I mh8CPIj9RAkPGvydb6rS0oN0G00qOxGztQbQXgU+LnS6nOSbNSKTAIQbyWoR6IQP3fs0 dz7T9RA2FUETcH5UTtfubqq8iAJW9fX3FlE1PpLPSaZMoq7ygugEdbrzzR0je5TZHpVP t9Zw== X-Gm-Message-State: AOAM5323beLl3WTqaJa92nR3riomIHbI1eW4/zKSg+WnEmyBEfczjCMR 4uSoVd4tZxDU7W8kvnPWmcA= X-Received: by 2002:a63:c10a:: with SMTP id w10mr3815406pgf.353.1618673792733; Sat, 17 Apr 2021 08:36:32 -0700 (PDT) Received: from ashish-NUC8i5BEH ([122.177.44.217]) by smtp.gmail.com with ESMTPSA id e4sm8347297pgu.89.2021.04.17.08.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Apr 2021 08:36:32 -0700 (PDT) Date: Sat, 17 Apr 2021 21:06:27 +0530 From: Ashish Kalra To: Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Ashish Kalra , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: eashishkalra@gmail.com Subject: [PATCH] media: atomisp: silence "dubious: !x | !y" warning Message-ID: <20210417153627.GA50228@ashish-NUC8i5BEH> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upon running sparse, "warning: dubious: !x | !y" is brought to notice for this file. Logical and bitwise OR are basically the same in this context so it doesn't cause a runtime bug. But let's change it to logical OR to make it cleaner and silence the Sparse warning. Signed-off-by: Ashish Kalra --- .../media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c index 358cb7d2cd4c..3b850bb2d39d 100644 --- a/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c +++ b/drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c @@ -58,7 +58,7 @@ sh_css_vf_downscale_log2( unsigned int ds_log2 = 0; unsigned int out_width; - if ((!out_info) | (!vf_info)) + if ((!out_info) || (!vf_info)) return -EINVAL; out_width = out_info->res.width; -- 2.25.1