Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753602AbbHSKuK (ORCPT ); Wed, 19 Aug 2015 06:50:10 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:23852 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752945AbbHSKuI (ORCPT ); Wed, 19 Aug 2015 06:50:08 -0400 Date: Wed, 19 Aug 2015 13:50:22 +0300 From: Dan Carpenter To: =?iso-8859-1?Q?Rapha=EBl?= Beamonte Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, Ksenija Stanojevic , Greg Donald , linux-kernel@vger.kernel.org, Cristina Opriceana , Joe Perches , Sudip Mukherjee Subject: Re: [PATCHv2 19/19] staging: rtl8192u: r8192U_core: fix line over 80 characters code style issue Message-ID: <20150819105022.GQ5558@mwanda> References: <0fdf9685f3dcb28e2d791376b770f34f0c1be88d.1439880735.git.raphael.beamonte@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <0fdf9685f3dcb28e2d791376b770f34f0c1be88d.1439880735.git.raphael.beamonte@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1277 Lines: 35 On Tue, Aug 18, 2015 at 12:58:20PM -0400, Rapha?l Beamonte wrote: > Light code refactoring to keep the lines under 80 characters to follow > the kernel code style. > The first patches seem fine but this one is too hard to review... Divide it up somehow. Maybe: patch #1: comments patch #2: add line breaks patch #3: add temporary variables patch #4: reverse conditions I have looked through this patch a little, and I am skepitcal of some of these changes. Do they really improve readability? - if (TempCCk == priv->cck_txbbgain_table[i].ccktxbb_valuearray[0]) { - priv->cck_present_attentuation_20Mdefault = (u8)i; - break; - } + if (TempCCk != + priv->cck_txbbgain_table[i]. + ccktxbb_valuearray[0]) + continue; regards, dan carpenter -- 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/