From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65360C433F5 for ; Sat, 4 Dec 2021 09:29:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354914AbhLDJcn (ORCPT ); Sat, 4 Dec 2021 04:32:43 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52538 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236112AbhLDJcm (ORCPT ); Sat, 4 Dec 2021 04:32:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 59034B80758 for ; Sat, 4 Dec 2021 09:29:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41200C341C0; Sat, 4 Dec 2021 09:29:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1638610155; bh=5GG4tyiK4gAxP5Kpyx9+aRYygBGXKkugP4utd+wzHKg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k59/NFsXfSqgE8Migw6xfNnUcIXJzSQfpPdGW0FkOvv4OhA4nXv8dXW4zejB4rK1c CcS4tah3qv5G5DJN3vT5Lz1dhDqrfALD2T/Gfykmt2K99ONyXEymN9se6A3/+wop29 X0iUUMAPPhcVAPARaHKok+JtPneF29KLCPhzijS4= Date: Sat, 4 Dec 2021 10:29:10 +0100 From: Greg Kroah-Hartman To: Alberto Merciai Cc: Pavel Skripkin , Forest Bond , Tommaso Merciai , Aldas =?utf-8?B?VGFyYcWha2V2acSNaXVz?= , Karolina Drobnik , Lucas Henneman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: vt6655: refactor byMinChannel to min_channel Message-ID: References: <20211204004041.3825744-1-alb3rt0.m3rciai@gmail.com> <20211204090941.GA3805206@bulldog> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211204090941.GA3805206@bulldog> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 04, 2021 at 10:09:41AM +0100, Alberto Merciai wrote: > On Sat, Dec 04, 2021 at 11:27:43AM +0300, Pavel Skripkin wrote: > > Looks like this variable is set, but never used. Shouldn't it be just > > removed? > > > > Same for max_channel (or byMaxChannel). > > To be honest, I would prefer leave them where they are. I'm only > refactoring the code considering less the logic aspect. > > I don't know if these variables will become usefull in a second > moment. Fix the code for today, do not worry about tomorrow for stuff like this. > Anyway, If you consider that this could be a good moment to remove > them we can proceed. Please remove things like this that are not needed. thanks, greg k-h