Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2916732lqt; Tue, 23 Apr 2024 05:50:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUD51yYvLevyUf177Lon2sU8dpxAju81qZz2O4AxADCq9Ijy96mnQYSp9x/9q4B0r9eQfyEhUNQx2vrKIGJoN0OnmDNvL+2liAQvDqbYg== X-Google-Smtp-Source: AGHT+IExqSwGo3yB9bnCa4dodT55OnBLA2XWvBUkF+oLkEUbkda2w2AIJd+I16VnIydYlZ/lWg1q X-Received: by 2002:a05:620a:254f:b0:78e:db34:9c2a with SMTP id s15-20020a05620a254f00b0078edb349c2amr17751344qko.14.1713876638599; Tue, 23 Apr 2024 05:50:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713876638; cv=pass; d=google.com; s=arc-20160816; b=VrY4eMw6HgR2Yzn7zPBvd5jW4xzb/mVSxIBn/PyxXqW57UCwGzBMrjJokPH0A+GS9r oIh6PI8/GIdGBqko9kou2q+dYPESXaxMpGFhyaKZm6eQFOEoxYlhpVe6nkjpGI7iMtO9 z4eCqOOH0ZkFck+DV5tUV2jfUzPC149ylgldCSw4aq1HEZ3uSGMZUnXMjLTmtJZ0CXJN lWFKVDKqBGYgMxdtBl40/49ixv9jr7y0kJ7uKlcLHLnlgCkI7ajkXXVVJAdGLSbzacoL ZJySskJVpC7MlHv3VAVtWOQmvsBoTrxCoKh+TVQCXFT6nExE3St6/TJX2VzXsH6X4R1+ SeUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GtCF0d5TRfvf1gJjlek+SkbwLI/L240GdEgYBnOFyEs=; fh=1b99bZEtDEI+TmUFQ3LPuwCXug8w4EylxHPgBEwt4MM=; b=SchSvuz/tEPt9+A2VcLLOdrjaOquAuBGFbWrK5vp9mM3cS8LK/szedLjtSueCm4ybF uZNIiwiUTiDVSoC0a0OMueynHTxqFXQFKLeE/pSK48TErLYcx5dbfsi4lU8lwX6bDAvE Qtl0nJKT27EoFqjoxWg4KzscY0oksVo5LkQzZDy9xvp+wzv7UCdeP+MdbBhzIIPSsLKw SmmzenNuVXMwMeMsgqcnQgvgfRlUvJ74yCwOAWj+oHP3Xo8o1Zi5YLJy8JuxtgObPpHv fi24nr5MXaRN4AtohXEgzG2pvfaNJBQg7HAfcGSgbJPSG51QeeFjASqfjV4BQTMEFVrq /3RQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3EGtRGX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj33-20020a05620a1da100b0078d67e70f5esi12371893qkn.222.2024.04.23.05.50.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 05:50:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X3EGtRGX; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-155215-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155215-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 40DD01C2307B for ; Tue, 23 Apr 2024 12:50:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A357912F380; Tue, 23 Apr 2024 12:49:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="X3EGtRGX" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5D0312DDBE for ; Tue, 23 Apr 2024 12:49:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713876557; cv=none; b=K5BA79rpyMk8XyIzN5FB23GJl+957hnF49HnfHrf0EKQyel2iHINEz3kx9D7fjDrWOHUc6jR2X8hCL1PycjA/1IUR6U4rPLQ/fkmvTc1fgK8un3D0wF2/MPNcNdHsKpyLHc+t81xT6zNJ3FON5sw8FW/W5nbGRTqX8xkBCUUbNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713876557; c=relaxed/simple; bh=XQeZr6E7rXhe/VT+k28qSPXYBkfsY+98/EcL4uCWgDU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Y/bu7sYqW35LkLsRFIp9GFTQqR09yz1EveJdrEC9vEzhmc8m/RZa2jBQN2JQeGEHWB+qcVQdA6rjvDKbEsfpa3I7WtXCO8RVrE2/Rh+29XgveXRqOl19UAxmby7PtDZ00bszsMn9+tUouL2lH1cor872qZifUqckHOJaPqbsiIk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=X3EGtRGX; arc=none smtp.client-ip=209.85.221.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-34665dd7610so2752166f8f.3 for ; Tue, 23 Apr 2024 05:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713876553; x=1714481353; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=GtCF0d5TRfvf1gJjlek+SkbwLI/L240GdEgYBnOFyEs=; b=X3EGtRGXHQ3DZI15Ubfea9OLOWPGEVP0xGmd2QsZJ4aZC6DkdsRk9xc+gAjKIbZlfE 5pcfowz3f2jRtPB4jZzeaHNMnA98kSnJqjtIdb1qkk8AEoVYqtYn2e8FlcxCIOVj7Ad3 6vvLpAbku3xJBP8DkhGwexSWVWW/qUY14ZQlSEgNoK7vAGLP4czaslnw/0eUR6k1xCUt DOT+ikWyDWLdaBYPdifM9uRaUCd+Wsadd9TGhOYH3w3++jh3NTNc4jaVgmWLJ/4QITBj RALkAbIvUrAZSfY7wkJRwPT0opPDJpxjE/MiuA6sNkKOh42+qeU/XgR91M133t0sZ2az Z5Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713876553; x=1714481353; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GtCF0d5TRfvf1gJjlek+SkbwLI/L240GdEgYBnOFyEs=; b=fLUpxqg11VmIq8vtec/S3SojOH/br0Ea7c8mY+uyV6OTADyq5/RrezsE0ib//jJ2p9 2Zhuf1PT3N35fbyHtceBz7Agd9wYyz/AXy1LZ1P2HflPQzeIHnZVMTMyU7wVYxAztuk0 Tt6LbTD0b9rMtpb/9m+KSiPZmxoAMTo5xreY67Kd1DEqAnrTvjDyKEGTE+6pS+Htf73D eMyk6TOHKzGWgkOqiPDjlwp8w7g3/ZTPymvubHSGISsdNNQMQP0OXlNZb8KU6hSWz2cq 4qDv+mX5cmfJHBCyVdZ7mNyk3vpK4X+yCrRJEhrXStM7m0tuipLCemjYp1PnkRMNseRD +MkA== X-Forwarded-Encrypted: i=1; AJvYcCVnCpAet559fy10jF36GT6Rx3n2gR4c+YY1YtJqiwUQJ/1sf9EZiqftZ0BIeEQBaR3fc+1eUYo3hVF+MCxg1Va45HpvX4fb239z6zFa X-Gm-Message-State: AOJu0Yy4UDqomq6yMfegyjZlZvLo1ikAgtLJC3WpJK2Tv6eKSfX21vid 78H0omtTVz7mWq8hcDomjDULprx5fh/GBfaurZ8dnlj53Ol8Q/pqL+ebBDdflK8= X-Received: by 2002:a05:6000:1e89:b0:34a:9afe:76f with SMTP id dd9-20020a0560001e8900b0034a9afe076fmr5609928wrb.30.1713876553387; Tue, 23 Apr 2024 05:49:13 -0700 (PDT) Received: from [192.168.0.102] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id y18-20020a056000109200b00343300a4eb8sm13594089wrw.49.2024.04.23.05.49.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 05:49:12 -0700 (PDT) Message-ID: <515e2718-7e1b-42c0-9d61-a10d00f12a31@linaro.org> Date: Tue, 23 Apr 2024 13:49:11 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 13/35] media: common: saa7146: Use min macro To: Ricardo Ribalda , Martin Tuma , Mauro Carvalho Chehab , Laurent Pinchart , Hans Verkuil , Hugues Fruchet , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Paul Kocialkowski , Greg Kroah-Hartman , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , Luca Ceresoli , Matthias Brugger , AngeloGioacchino Del Regno , Hans Verkuil , Sergey Kozlov , Abylay Ospan , Ezequiel Garcia , Dmitry Osipenko , Stanimir Varbanov , Vikash Garodia , Bryan O'Donoghue , Bjorn Andersson , Konrad Dybcio , Benjamin Mugnier , Sylvain Petinot , Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Pavel Machek Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-13-477afb23728b@chromium.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240415-fix-cocci-v1-13-477afb23728b@chromium.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 15/04/2024 20:34, Ricardo Ribalda wrote: > Simplifies the code. Found by cocci: > > drivers/media/common/saa7146/saa7146_hlp.c:125:36-37: WARNING opportunity for min() > drivers/media/common/saa7146/saa7146_hlp.c:154:41-42: WARNING opportunity for min() > drivers/media/common/saa7146/saa7146_hlp.c:286:35-36: WARNING opportunity for min() > drivers/media/common/saa7146/saa7146_hlp.c:289:35-36: WARNING opportunity for min() > > Signed-off-by: Ricardo Ribalda Reviewed-by: Bryan O'Donoghue