Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3082251lqt; Tue, 23 Apr 2024 09:48:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWNUYljq30t33QN88VqI/4ZKbE9Z5DPJXRwvudAVgyGPGIEocmdEe5j4oVL7qUixLGo2fYNc/yCRNhYI/7FhFNkbfh0ye7UnnNhpD4mHg== X-Google-Smtp-Source: AGHT+IHxL4pcf8IWD7ZNlMBELn5dFz1nMTZ1Mc/4ix8AEZCWmuXF8CW5/k15e6MyZWJq3mje4ghU X-Received: by 2002:a05:6a20:6f0e:b0:1ad:2ba8:2499 with SMTP id gt14-20020a056a206f0e00b001ad2ba82499mr8052326pzb.51.1713890886532; Tue, 23 Apr 2024 09:48:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713890886; cv=pass; d=google.com; s=arc-20160816; b=LrIv3WlpRdIbtSKM4jpovbJ5azQdUetK90sW3LPpVeP/OlxpDQEkJeRd17RnHIYq9n 70Bnisxk9zV8jrN/S7hINOvl6ekx3YMBS8R3cDHGWn+0SwUeZ/EUHappMKY7BLI+Kt0H pkKrU2yJxHRX0z3oyVjwTnujoJv5zPxgdqkZc2kwwEVLDxWiHelO7Das5MC2z0TZUkfc 3gilJz4Kq5ckVnXi0d1mgRPEdXR5hEW/7jFkztMuneTKIKDQH5rOdRpPaePq3pbBQjk+ S7RRT3Lj/hIVY3G4M2dx9DlJSyBJP6qqXgJMG2bikAd553N7cWq8vswQ28Lc629xhkpE HT1w== 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=AAjd9LkEDNuVK7j7GhyFYBnO65hiE7cXAXMhivu0jgk=; fh=mgYnga/hB4XxJE2yDnZSqwLNc31Xa+F7nczHwd62AJE=; b=g4trOQOgzYMpf/VE8J5/3G+TOi/LSTNmkzPyWsCFbVpCYso36Ia2CYGOm4VrOcF8jI NKlUjIHMGNL7zuG3MAnz8Tb/8zIWWnKjStoeAyxSBzRCyHkCoxne8swvTC9nUU5r3FoY 5453/6vezGQmoIjwPw67Cd1tYfB7g63okxS+J2/3i9ROpuOKmUeeCEmIoqHNqcMC8bCk UQDx7p5u2RovLVHaTj5ngyD4IHBXj4ZiLExOFh7tP6yBmUzN644dxMPmqFphB8rdJ47P mPROZbRr+yb3/phQ4+WUUK3+cXdF6IdfIsK80KaqA/zZH/b2sk1DQekGmHijHT5DXvrN FYDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JwUhLz8l; 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-155588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id v63-20020a626142000000b006e8f9fc3c54si9849798pfb.95.2024.04.23.09.48.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 09:48:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JwUhLz8l; 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-155588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155588-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 26198B237BC for ; Tue, 23 Apr 2024 16:43:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DCA613D52A; Tue, 23 Apr 2024 16:43:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JwUhLz8l" Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 1A94213D27E for ; Tue, 23 Apr 2024 16:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713890579; cv=none; b=btah++NuphNxuYmcfNcsk8tVkri9I8rss8LlD8wLXeed53jJ3HkAn6lJivhNLTNnwNSxaFB7ISGR6HC5ku7+cN9FViVmL0a4l8RkYrvzUDfDb61Z+LJ55Eagc/0ivf0coF5FAjmnB2cg9rxD5rse5xFu+VzmnK5/ETbHJJlEISU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713890579; c=relaxed/simple; bh=GpHmjh1oP5OnIlmRru0FaAZCq+BYGXsln5CRJl5tfWA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=DkWjxmcE3qu6lDqg9uf/m/SI6UqJvw1voARpsk3WNqowEcNvYC4SO9LWiMMDqnXoLBSvPPjFbdj7kVNsSNVwSRFhFPGIvnSSuoflLlfQ5k1ms8b4tGFBl0b4IKehbwXfugPEF4lxrvo/f0fis308T8E/HGBfM5vtcRX1B7JxOkM= 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=JwUhLz8l; arc=none smtp.client-ip=209.85.128.52 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-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41a523e2888so18363525e9.1 for ; Tue, 23 Apr 2024 09:42:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713890575; x=1714495375; 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=AAjd9LkEDNuVK7j7GhyFYBnO65hiE7cXAXMhivu0jgk=; b=JwUhLz8lVoFZQUFCRcq8K8NccepSm/rRQ8Sgt+/v9El0ePkAaju0n1zNRy0Xx0vgNd xT3d58K1jS5TniX6TujKFu93xPGrVqjZmQsnmh6lgEZS1GhV1LYZQvVzCZIctfi8NrQr qMVxzL6GHPpamW++IUFXWkH+NI954J4jcql8w+09KKlV4lAISbNDz24PrxFvdEHrMyF1 /Rb0AKUiYWJA4WyfYDGQ6SIOiTCclM0er3uJuQzkp8+Mile9ozYQ4iLGVCFwQBBu7Jwy x6v50NysGyS0oiL7cI30FEaCDA3TDrraCuqbKAdgqPhYcYbbeYU3ZUO9cK5YPx1fIcNn lnPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713890575; x=1714495375; 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=AAjd9LkEDNuVK7j7GhyFYBnO65hiE7cXAXMhivu0jgk=; b=wNnr+7LdBichcYE8PubNhM5Io43PFnL2bQaXLurfsw8fJ9QEXC3EdY6aTFk2SqInSN 1la8okHv51gILQO4nUwUaYEEpWjHaa8TyGKLu7uj604q+ppaBBaE7UiCe7G8t/WeiGaL 5l6Ffxr0EkpwmmtJVcFgqfJuHqrRSBsyB6GjGTvmitMVQcUQyz69Hdz5iYmOPz2UwPUR Ini8J8OgyH4GsZqtWXOyVCkn1fRM0UXdORNeHQ2MCZ52M9GuXIjjpm/bKV4E/xJhoYgN NcEAAagJ6KR/tMRdqKWfMmIfBzofcpB/dx2STYplXuHyAAAIm4sV186m7MzmgFecRHza wo2g== X-Forwarded-Encrypted: i=1; AJvYcCXJ1CoLjSUklzaX1SIr/HcQ3sVn2rTfP9T3L+Rtpr/27DjAvkv1ZmWaHt+Z+isbU5/+95ifsiF2a67KDe0CueXRSCcw4560MO2b0Nkl X-Gm-Message-State: AOJu0Yz7QIUmWFoQeDrWsLoVqFWJDoyNnLXUARnRxe29pFPYTFNycx9A Qk9HV1QQ26onc6DVr9698hO0FRbiGMxGHfx/Ps+h9wTJeg8OgFOoqqLm6Br0xXk= X-Received: by 2002:a05:600c:1c9e:b0:418:a5fc:5a5b with SMTP id k30-20020a05600c1c9e00b00418a5fc5a5bmr10146720wms.36.1713890575406; Tue, 23 Apr 2024 09:42:55 -0700 (PDT) Received: from [192.168.0.102] ([176.61.106.227]) by smtp.gmail.com with ESMTPSA id jg1-20020a05600ca00100b004183e983d97sm20619705wmb.39.2024.04.23.09.42.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Apr 2024 09:42:54 -0700 (PDT) Message-ID: <3f5c46bc-6fe8-45a4-8929-7b93b276478f@linaro.org> Date: Tue, 23 Apr 2024 17:42:53 +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 19/35] media: stk1160: 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 , 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-19-477afb23728b@chromium.org> Content-Language: en-US From: Bryan O'Donoghue In-Reply-To: <20240415-fix-cocci-v1-19-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/usb/stk1160/stk1160-video.c:133:12-13: WARNING opportunity for min() > drivers/media/usb/stk1160/stk1160-video.c:176:13-14: WARNING opportunity for min() > > Signed-off-by: Ricardo Ribalda Show the commit log some love, then add Reviewed-by: Bryan O'Donoghue For patches 16 through 19. --- bod