Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3220973pxa; Tue, 25 Aug 2020 15:08:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKCuOhEm1i9CknwnYKnmLrWSIq+bfahe1OYBTO5SaMnSyfNpJAFAbQIvCADmURcer+pgJr X-Received: by 2002:aa7:d54d:: with SMTP id u13mr12691914edr.356.1598393303532; Tue, 25 Aug 2020 15:08:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598393303; cv=none; d=google.com; s=arc-20160816; b=HS8X3bTJKe5IkNE//Dh2qOTOO0bvO0aai9G0vmobw7tgb2v7ZugP4MOFbMBuVDFNzO N54H9h7lPKosF3VviUgQ+VdnEuV2zyGpqZ/6wxCRy8NDSvnQF/CKb+SVXUNc+I4r8ihK ZlXQ1JU7wxip5tk6ng7EIUVRh8Eca7ogfDlVcds0vR+roojfDdb5a8QnAN96DABT/jOE oVvgfrfmyD5992RVWL5wpGfIpi+Is4GDuUVFyCDOdOFqIH/kV3735Mp2csf6hz6H/9c1 ZHm/MSzhPMHe/4jCtCpxxVTGA8hiRV+UauXmvU7S/4oYttGG/6FJJa3FUSXDx2f6ijla t9ug== 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:dkim-signature; bh=DDfuEeZvkhmoX/XBxHBvhw10a3kF5GozAC7FQVyl31M=; b=TSGZMeYWop126rvt8uhFHQkYtV2iKNqfY4gV+tZbdWz60iNo0dnIn2LLI0i/nzsJlF HB/6cqAk7RBnFezgCIw8iau0fliowQuAqrqCrnIhSYzzKoLQHXvLZJiOf/hRtfXeun7Y EnnqnSxaxKMab9EGDSxfZ/ejKNivX6hSpI2BbeYozwZdRfVev98t8Wnkzu1glqBf342k bsFTbUv0gNkfxrIYd9uCLiKhsyD1LijKbpb/N7sNQOL0j+cHzwkBEr3g3ZYWSwvCUrNx 5yKn6BMwNKgmRKxq6cQVXpmggQ1ct+RHngyCU1Ko52ADmTzPtvTTy2qcyvWZ7M4DCn/X nCDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hiiW82z6; 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 n18si230902ejx.267.2020.08.25.15.08.00; Tue, 25 Aug 2020 15:08:23 -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=hiiW82z6; 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 S1726593AbgHYWH2 (ORCPT + 99 others); Tue, 25 Aug 2020 18:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgHYWH1 (ORCPT ); Tue, 25 Aug 2020 18:07:27 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0033BC061574; Tue, 25 Aug 2020 15:07:26 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id kx11so195227pjb.5; Tue, 25 Aug 2020 15:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DDfuEeZvkhmoX/XBxHBvhw10a3kF5GozAC7FQVyl31M=; b=hiiW82z64jhCNt3G6O1Gbo3lHrfE3KuGanUIOpwd7pOWjJpHoX3aRXOeP9MNvppOW1 ITGK+p9JecHZWNR9soJZo5gBGMqr+t89qRspTlgSzrrAq8UmjWe9yVGqKeX/XxtHgVcm gmtHfqPiTnHsiOXgCfi66YA4pkQ6BUpquoldIbo/I8JM+J9nZQLpHj9prsZt4GZsWcTp 3bqxh9L/a/c/aq6FM6sibf0VOkcuKhQ552JqeNaMlBR+vuMESJ7qYjhnwQeheap2xYND kLokaSIlXPQZlRIGk8gRbJFCimmNXa7VwwD/tlK/DSgcZamTMydsnG7q3GIyfx720KwY PumQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DDfuEeZvkhmoX/XBxHBvhw10a3kF5GozAC7FQVyl31M=; b=Y3i6BwT0zlzRey+1l14OdiXjNDm6nDxyfhBZVJo7S0s2QR7ftea83hzZfeBvbi2UYm Yv8Yy4KYMFJ415poOnccBFIR0vJFO7MGJ5GDmHxsVswE0kdrbZZeZcqce4sqWY7ukd5T z3uPgUDTggsQl18CveDwSoQMHFksRog8EJut3shVrb5ufH9FxEmt0he/bu8yKfXl8DBc 3DMcnEwlYY8n484FBUdRXivbnlP+G1zM4sSuwxl79KgImlJPdrCURJXDI23l/IDxtDcG Jx3xzqJibXRJxOUDEL8Z+FVTfVGNI7nFx8BWimICflRd71+lqFM+wPHBUwkjjIMyye8g SASQ== X-Gm-Message-State: AOAM532aUI9J5NXSxxRcsCQMpsOY1WceXbtZ9prvc4xm84oXD0wBRL2g A+45uhAOJG0Gl65oN5GNsbs= X-Received: by 2002:a17:90b:100e:: with SMTP id gm14mr3216566pjb.39.1598393246279; Tue, 25 Aug 2020 15:07:26 -0700 (PDT) Received: from localhost.localdomain ([49.207.215.131]) by smtp.gmail.com with ESMTPSA id k5sm100368pgk.78.2020.08.25.15.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Aug 2020 15:07:25 -0700 (PDT) From: Anant Thazhemadam To: anant.thazhemadam@gmail.com Cc: Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: media-atomisp : fix "dubious: !x | !y" sparse warning Date: Wed, 26 Aug 2020 03:34:26 +0530 Message-Id: <20200825220437.11214-1-anant.thazhemadam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org 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. This patch fixes that warning. If there's a specific reason that this change is considered undesirable, please do let me know why. Thanks. Signed-off-by: Anant Thazhemadam --- .../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