Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1892105lqp; Tue, 16 Apr 2024 00:18:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXZJSm0cFQSJ5aTlrzKbbY5RyxdreUdnygUh0azlYZuJTcaelAtz+4IbBxGSs8K1IzQ+gGjH6HgNJ3cUvb9bSTRgLwu55p4RvMPMQ6GVA== X-Google-Smtp-Source: AGHT+IGZPYCHxk0VYZfYy615JRguH1OSGW8ycMpg70sh1logz0su2MnsJY2gayegsWNXVlOM++uK X-Received: by 2002:a25:8246:0:b0:dcc:f8e5:c8c8 with SMTP id d6-20020a258246000000b00dccf8e5c8c8mr11388983ybn.45.1713251936447; Tue, 16 Apr 2024 00:18:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713251936; cv=pass; d=google.com; s=arc-20160816; b=Of3lB/ClYHvpLqMH/aTaXZN5z7pds5AGdeJHzTP67juLtocgkBx5id0ccuo+9EgBRQ T/q4f8JjcOBQ0tnB5QmqLQeXwr998EA0SnYOKRevg5qmoG/Z/Zu9P7arVbpP/bKJYfUL ceml7hTgHXfoEnPa6qO9JMKciV6gFLtOwjhm/6tm9V1Ue7kZ2KtswmJzT17VlYaoJPbR ECHKmfLepMjO0NkJij1F5ZFzVg6dG/whiL7V2yJMHz3lsaWimo7aLhEUeTvI1Daw+ktV dRyDzikkzNadaLFiH8v7+DKcfCuSjmsJ+VIFU1aHeko6blk0GkSi4nosjZZZ3MBwi1gs cd8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=7Js+PUReNC5fblwA4YV9+SkvAh/m3okNfWjQFPXiQIs=; fh=Qn5NeBQttqcY/8AmtAEe+9444nNnN8ERNHto9xwvRS8=; b=Ditefw9//6okkA+csfyaPnHsRQ/q1y6tyRx/vLAob+aXQpPrTykKaWKWNgSBJdyJ5y g5M9uyI2V7xVsVV8dzXK00O+Dy0X+qUqbMKgW6HZLC3iSzV+GcRvXAuecvDfedrrEDnv dIQjZYWLtrSY20q0XQ+PqO7C/rY16sGRrvwL6u+CkDeWpE+vLupiaMJIue1AYHIMKzZp YOWQvY/aVxNlmEOQceHTOur5KeP/q5TB8y1jJ4InVeaqe1/cl3DKxa0158LGlbIBy+BU jpc3tWQi3r++WpH6sYkSSzztLD1u5UXNEbrPgSq//DlvrH7dBi2cf/fZRA72qRzL1Nh9 7+UA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GM0HpOKv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 q6-20020a05621419e600b0069b631a6164si8745329qvc.110.2024.04.16.00.18.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146403-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=@linuxfoundation.org header.s=korg header.b=GM0HpOKv; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-146403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146403-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 2CB1A1C21578 for ; Tue, 16 Apr 2024 07:18:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 46714136E2B; Tue, 16 Apr 2024 07:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="GM0HpOKv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20DB578C68; Tue, 16 Apr 2024 07:15:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713251758; cv=none; b=cxhz3eHZewc0O9x0r6BUXoMpwSwvdkYwbMtLl5tBPQ8oofJHXyzTfZUbMsvkl54AGHfBCo19vDspEd4E6N4/JTi3sv7U0H8dpRfCLlGqcy1Prg36JYMq6yaQ9lH5uCsQAluZhaV0465eZJLx8zk3NjBMFJGyp62CN4wp7spcMVM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713251758; c=relaxed/simple; bh=fUF2u2LQ3yYejHYR20qqNgEGI+K7DgTOWHNB8ygVkHk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uh68zfKtV+AAYP3dEjz1yw118DwuA4SaiD0F2JJbcZcCLY2hWr0R/vbYUwITmc/sXdaaoBvIhTZan8IKlbBPeTm6FJ1BVHajMyYRxZGGQzl+HE++jcgJnAF1kP84JFspp+XIzn2WM36TP5u1HcVCFL5lFoYDBrtZUlNNM4KHLd0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GM0HpOKv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34BB3C113CE; Tue, 16 Apr 2024 07:15:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713251757; bh=fUF2u2LQ3yYejHYR20qqNgEGI+K7DgTOWHNB8ygVkHk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GM0HpOKvvu3P9UCy4cNIuJYRWvPq5BYD+56S81mhe9N1R9IceqdpHoryxgbw1kGhY +JxBBgH51if0tF9gFdKZ10CJHe/4KxL0pZvEaarQ/+kXVYQlIYT+qamLhpoqug094G KERgownT5RTB7lAp9I7wg+v4Q+AsaMKUMMeXjVMY= Date: Tue, 16 Apr 2024 09:15:53 +0200 From: Greg Kroah-Hartman To: Markus Elfring Cc: Ricardo Ribalda , linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Abylay Ospan , Alain Volmat , Alexandre Torgue , Angelo Gioacchino Del Regno , Benjamin Mugnier , Bjorn Andersson , Bryan O'Donoghue , Chen-Yu Tsai , Dmitry Osipenko , Ezequiel Garcia , Hans Verkuil , Hugues Fruchet , Jacopo Mondi , Jernej Skrabec , Jonathan Hunter , Kieran Bingham , Konrad Dybcio , Laurent Pinchart , Luca Ceresoli , Martin Tuma , Matthias Brugger , Mauro Carvalho Chehab , Maxime Coquelin , Niklas =?iso-8859-1?Q?S=F6derlund?= , Paul Kocialkowski , Pavel Machek , Sakari Ailus , Samuel Holland , Sergey Kozlov , Sergey Senozhatsky , Sowjanya Komatineni , Stanimir Varbanov , Sylvain Petinot , Thierry Reding , Vikash Garodia , LKML , 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: <2024041643-unshaven-happiest-1405@gregkh> References: <20240415-fix-cocci-v1-3-477afb23728b@chromium.org> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Apr 16, 2024 at 09:03:36AM +0200, Markus Elfring wrote: > I would find a hint for a variable change more appropriate in the patch subject > instead of the word “iterators”. > > > … > > +++ b/drivers/media/usb/uvc/uvc_ctrl.c > … > > @@ -2175,16 +2177,16 @@ int uvc_xu_ctrl_query(struct uvc_video_chain *chain, > > int ret; > > > > /* Find the extension unit. */ > … > > + entity = NULL; > > + list_for_each_entry(iter, &chain->entities, chain) { > … > > I suggest to move this assignment into the definition for the affected local variable. > > > By the way: > I see another source code adjustment opportunity in this function implementation. > https://elixir.bootlin.com/linux/v6.9-rc4/source/drivers/media/usb/uvc/uvc_ctrl.c#L2165 > > Can it be nicer to use labels “free_data” and “unlock” (instead of “done”)? > How do you think about to increase the application of scope-based resource management here? Hi, This is the semi-friendly patch-bot of Greg Kroah-Hartman. Markus, you seem to have sent a nonsensical or otherwise pointless review comment to a patch submission on a Linux kernel developer mailing list. I strongly suggest that you not do this anymore. Please do not bother developers who are actively working to produce patches and features with comments that, in the end, are a waste of time. Patch submitter, please ignore Markus's suggestion; you do not need to follow it at all. The person/bot/AI that sent it is being ignored by almost all Linux kernel maintainers for having a persistent pattern of behavior of producing distracting and pointless commentary, and inability to adapt to feedback. Please feel free to also ignore emails from them. thanks, greg k-h's patch email bot