From: Takashi Iwai Subject: Re: [PATCH] sgalaxy: checkpatch fixes Date: Wed, 05 Sep 2007 15:20:40 +0200 Message-ID: References: <20070904234925.d96c021c.krzysztof.h1@wp.pl> <46DDDB21.9000003@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id EF16124354 for ; Wed, 5 Sep 2007 15:20:40 +0200 (CEST) In-Reply-To: <46DDDB21.9000003@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Rene Herman Cc: Krzysztof Helt , Alsa-devel List-Id: alsa-devel@alsa-project.org At Wed, 05 Sep 2007 00:24:33 +0200, Rene Herman wrote: > > -#if 0 > > - snd_printdd("WSS signature = 0x%x\n", tmp); > > -#endif > > Please don't just kill debug code. It's very useful for the next person > stepping in -- it's "functional commentary". Then let's get rid of "#if 0". snd_printdd() won't get compiled unless CONFIG_SND_DEBUG_DETECT is set, so there is no reason to kill twice. > > @@ -327,7 +329,8 @@ static int snd_sgalaxy_resume(struct dev > > > > chip->resume(chip); > > snd_ad1848_out(chip, SGALAXY_AUXC_LEFT, chip->image[SGALAXY_AUXC_LEFT]); > > - snd_ad1848_out(chip, SGALAXY_AUXC_RIGHT, chip->image[SGALAXY_AUXC_RIGHT]); > > + snd_ad1848_out(chip, SGALAXY_AUXC_RIGHT, > > + chip->image[SGALAXY_AUXC_RIGHT]); > > Definitely would keep this on one line. Well, I don't think that's too bad to fold. But, it's not forcible enough, too. After all, the 80-chars rule is for readability, and the readability is more or less a matter of taste. Takashi