Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1849484lqp; Mon, 15 Apr 2024 22:10:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXj/XfT1HfFRE7OjXhXxAG4r69c3r36Fm8PXoEOBx+cWPXZtc9ENJ6ckdyVPyZmEmfSoPKbw5btOj6aGzEdvkTWexzvzS4JfIPbjPfi1A== X-Google-Smtp-Source: AGHT+IFHjYoMcWs+h7neoEkX6mLS2fjoTNfcYJSXUBkhI97/r676kFOPRvw6ePAWX/CDZXxr1hNg X-Received: by 2002:a05:6214:517:b0:699:23e4:8ec8 with SMTP id px23-20020a056214051700b0069923e48ec8mr10733185qvb.57.1713244217344; Mon, 15 Apr 2024 22:10:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713244217; cv=pass; d=google.com; s=arc-20160816; b=uepGN49WqMpFN57TBLnu/J68MvCyt49UOQxKIpmDnxhQX46tnTWeF87RXKjgzSC+tV A2za8oWVT/O6w36EvY9MDmPqMNSMqTKtiPqH6SXjwGNDfUHfbichGAV4i8ADHfCQvwYT zLIH1/GnVxlG5dFzBjSgAZu8zG3nR3xpxZ0FYGPI73+GDXEZc66ZJeB5jGaYZVTBnnOp l4PFHkmzA7HsFkIxXJUqPTXplCXcVGgR3T4WwPEjk7ksEZV6ELe8PJLm9BhKxS0wX9lq GHMuUGxQp5zsZ/DhpG35UlKzSA0IgC+B+5JYkR4rcL88LpdHz9KmwyYzHmRXkxPnaYU5 5SOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+oFRnUlIWAVoS2ogvawh6UrIJvrJD5mfVByWfU6FCcs=; fh=V0fUm/yUVlvNTG4BlfFcjlOJoLQGIicccs4zG0mKQhI=; b=bqz4+Lfclj0PTyGuXFHn9oFaqxbwtHNSA1FXMmIX/NmMpqEH1os1QVuzpEZa0MmY+Q Swmc/dpHIjE7+ft7uCwY53o4ozj41CPe9I6RZCWGt/CS8TJ2Uu94RkxhhXJVptN0cAr1 OJte/vhqc9SHVurK8X30o6TxZLiAVCg/IAp6ytjO4yxJvVSjzG4xMggEBHkD7AvNajEI Zxa8gJNKSFN9ysAe8pLFk28079+cM1itm7yFaiiZIKmOLC00qsQyPhepmTA7fsm4eeH1 SVGuVW4wQaejKbIfJ0KV9g5HLtnTtVma58LM4BoTMQhwkQ0g9QA2u2WviVr7DeP46W5S bwKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=SM5m0z7T; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146262-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 b11-20020a0cbf4b000000b006992fb629adsi11383088qvj.135.2024.04.15.22.10.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 22:10:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146262-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=@chromium.org header.s=google header.b=SM5m0z7T; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-146262-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146262-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 034E81C2210E for ; Tue, 16 Apr 2024 05:10:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 072E43D57D; Tue, 16 Apr 2024 05:08:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="SM5m0z7T" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 2778939FD0 for ; Tue, 16 Apr 2024 05:08:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713244117; cv=none; b=kawFpb7Nkx8nz/gEDjnrNkp1eHcPn5DyupWNAjaV7vkx7M4KDUND9jMxCouj5OZgu9LDSTmi5xDWQOqcUeWhMjkBQ4rkLtlJZQPZaLUceOSv8vwnkbwYZ1OWIQMdZT3jmKhJy5OsshCCyi8xlqdd/gjBiDLS21Zmut9A0TOj1G4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713244117; c=relaxed/simple; bh=ogTb/EY/IFRV9I9Ma1QpOc93lubjjzj7VSkmXIhlhHw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KDeoN68Mvi5jyRYgQknKuhYI2vO99Dp6HFsdoDAMRNJY0bcemHB05gwh0vTag6Rpa59YGqqkCQdboj9JAfybx8wO5b3dC2E4nO/7uM5OFDyPoMMFdR4o2Q2eCQ1gT9uRoDViT3BbMXWCBPMQ4hCaHZzM8YUZXpYNOV3+fmKMFL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=SM5m0z7T; arc=none smtp.client-ip=209.85.215.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pg1-f171.google.com with SMTP id 41be03b00d2f7-5ce2aada130so2581523a12.1 for ; Mon, 15 Apr 2024 22:08:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1713244114; x=1713848914; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=+oFRnUlIWAVoS2ogvawh6UrIJvrJD5mfVByWfU6FCcs=; b=SM5m0z7TFXqS1fvrFLpjthozuB3gYh9BICiGe5y2jmmTEXs8Y8YyQVSh5PFffZuR8D PoiUM0NwyhYDaQzIbHuNkYJhC9nPR6ZGoRc1RlFbDdmJrjFuiwvt/Z6VnaInmRBMWe0x DWbbbcz77heOx0YuxJBU2qFq4+LMKKKklfP0I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713244114; x=1713848914; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+oFRnUlIWAVoS2ogvawh6UrIJvrJD5mfVByWfU6FCcs=; b=nlrbl/jxGoXwATC5pAy97GGN6mljZpxPlFBH7f0lGGQGn2wKuQ6YXq2y5VbM4j6wSY 5Sh5wBJ/uKB+aC/OF3j+n8sqt/lGMwiDZu+R32sniNVi2XG4/Xowyy9YPwU/9Q3Z6Mev jgHvVwZMovjwOjfDqQ0hNNMnGT7JDNtkz4tQX5UcDQUhPoMCRU7tuX/Y6+Ab514L6NHG 2rBdQo7li8yGZC2aqfOpPETuSeh2bBUPFqwORXF17TA0aqA50UKlm+MpHNWzrk+XznMC mWIKuaj0PA8/NDeDrz9Xe2KqzZuHGF0K7Ea0Pfg+S2pY0vVpQGkS8qzcd6uYFhHTWXC4 vcXg== X-Forwarded-Encrypted: i=1; AJvYcCXlbGm61j3iAMaCR7AsKKdy9hMi120B/ZuZ80gt6Foc1TBokaScAPiNm0skDoNcDeWiaqHi04OTTK8PPIH4aOpQxN5yw6dA3JvEstup X-Gm-Message-State: AOJu0YydVR7X80PXaYP84J8BGkhZiL1yaWMzgVPTGF+2uirZTXBtyt7U 38/gTsxI9MI7uQBCkvi+dNjRCWlbaZB3rR36n+st2RccpJuiXjvY/DZcxOuBSQ== X-Received: by 2002:a05:6a21:2d85:b0:1a9:c13e:f211 with SMTP id ty5-20020a056a212d8500b001a9c13ef211mr8124701pzb.47.1713244114400; Mon, 15 Apr 2024 22:08:34 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:1137:d3d7:a09d:5379]) by smtp.gmail.com with ESMTPSA id ju17-20020a170903429100b001e49428f313sm8835349plb.261.2024.04.15.22.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 22:08:33 -0700 (PDT) Date: Tue, 16 Apr 2024 14:08:23 +0900 From: Sergey Senozhatsky To: Sergey Senozhatsky Cc: 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 , Niklas =?iso-8859-1?Q?S=F6derlund?= , Pavel Machek , 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 Subject: Re: [PATCH 03/35] media: uvcvideo: Refactor iterators Message-ID: <20240416050823.GC14947@google.com> References: <20240415-fix-cocci-v1-0-477afb23728b@chromium.org> <20240415-fix-cocci-v1-3-477afb23728b@chromium.org> <20240416043916.GA14947@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240416043916.GA14947@google.com> On (24/04/16 13:39), Sergey Senozhatsky wrote: > On (24/04/15 19:34), Ricardo Ribalda wrote: > [..] > > @@ -2165,7 +2167,7 @@ static int uvc_ctrl_init_xu_ctrl(struct uvc_device *dev, > > int uvc_xu_ctrl_query(struct uvc_video_chain *chain, > > struct uvc_xu_control_query *xqry) > > { > > - struct uvc_entity *entity; > > + struct uvc_entity *entity, *iter; > > struct uvc_control *ctrl; > > unsigned int i; > > bool found; > > Is `found` still used? It is. Never mind. FWIW Reviewed-by: Sergey Senozhatsky