Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756717AbbDOV5F (ORCPT ); Wed, 15 Apr 2015 17:57:05 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:35819 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756493AbbDOV4t (ORCPT ); Wed, 15 Apr 2015 17:56:49 -0400 Message-ID: <552EDE9D.4000601@gmail.com> Date: Wed, 15 Apr 2015 23:56:45 +0200 From: Mateusz Kulikowski User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Dan Carpenter CC: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 15/21] staging: rtl8192e: Fix LONG_LINE warnings - modify variables References: <1428961664-4241-1-git-send-email-mateusz.kulikowski@gmail.com> <1428961664-4241-16-git-send-email-mateusz.kulikowski@gmail.com> <20150414084035.GG10964@mwanda> In-Reply-To: <20150414084035.GG10964@mwanda> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1667 Lines: 43 On 14.04.2015 10:40, Dan Carpenter wrote: > On Mon, Apr 13, 2015 at 11:47:38PM +0200, Mateusz Kulikowski wrote: >> + if (*rfa_pti_r > 4) { >> + (*rfa_pti_r)--; > > > Honestly, I thought that patch 14 was too hard to review and did too > many things, but this one is kind of ridiculous. > > - p->rfa_txpowertrackingindex--; > + (*rfa_pti)--; > > The new version is fewer characters but it's way more complicated to > think about. Just rename rfa_txpowertrackingindex to something > reasonable. It's a stupid name, because it_hasninegazillionwordsinit > and it's too long. > > "rfa_pti_r" is a terrible name as well. it_also_hngwit_for_realz. True, but it's also used as local variable in one-screen function; Nevertheless - I got the point. > I'm not going to review the rest of this patch. Thanks for the patience, I will try to split such commits more in future. As for v3 I assume patches 15, 19, 20 should be reworked; I will: - Try to find better names for structure members where possible (this mostly applies to r8192_priv members), - Do exactly one type of cleanup 'operation' in each commit (this means fixing one LONG_LINE warning may take more than one commit) - Avoid playing with pointers like above - Standardize local variable names in all functions (i.e. if I use igain as init_gain pointer, I'll do it like that everywhere) Is it enough or did I missed something? Regards, Mateusz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/