Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2001869yba; Fri, 17 May 2019 08:50:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqytux0sjLq2HzOgkc59vTGdMLY0BvN336MBVjd9Q6IrnLLWpmaHFXJ8IAHZIgUnWm2liHPa X-Received: by 2002:a65:62c4:: with SMTP id m4mr57444915pgv.308.1558108226306; Fri, 17 May 2019 08:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558108226; cv=none; d=google.com; s=arc-20160816; b=KDoYHeD4ELoycJygnItoAoGc/8gEo1ikkfE3cOCUMyIkE2xTBxLeuMZrSsu+cvmf7o GKUAByzJHA+FHvIwM0iIzvLjbyGnO7QRLaSV2I/1URQo4b/HSHttK5M8cD3BGzdcStEZ Sx1GwrDkU1f0wlW56M1bcD7bBIBiU8pTPZDRXnJ1+D/mgJFMer7bAO4nU+Lexw94EvMr Cu6E/duYPz/F75+92ncXL+SSQWUqid7FU2r1EcEmR1N4Xw574lJbMJJNmAi9A0q8SmvZ MDgcDKVsrUqdooMJ/2eQVfZyzxWNRZjPjg5fVc18SGEmoPyRHc1yPaN6LB145a6fZ3LU hpmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=kmD1psvRyshattZVwqeZeG6W7EH+5TqWuN196jC90nw=; b=vVBlv8iiOWts29AV0vyflRqZLBOxONJ2eRgZar8/HGUQVTYF0m1b1GCIYXPaIzvv76 sXvRIobxF/cM1pj6NUkqB11eTsGF373+ol9pFyLR/ctFujg13kALW6SlXspJemQR8/x+ TCFjk327TNWrLeRY63xDG0uNL8RBZaFGa6tyDedGA2vzzwb+JAShVdauX9p5dffzFZdu tRGYdViaF92L4pdDEmOW+GOprStjzANWbREjn+j06xo5m6GnuONOnCuFz7oQ5BOvz9ve lbmmXdVoWwr9aF19WgCVsEIxq9plnRui2ElFa2tvfCap47GPd718AfUwgaTnXLbIt4Tj 8L2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si8275560pge.123.2019.05.17.08.49.56; Fri, 17 May 2019 08:50:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729164AbfEQPrd (ORCPT + 99 others); Fri, 17 May 2019 11:47:33 -0400 Received: from mx2.suse.de ([195.135.220.15]:41056 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728791AbfEQPrd (ORCPT ); Fri, 17 May 2019 11:47:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 7FE74AF67; Fri, 17 May 2019 15:47:32 +0000 (UTC) Date: Fri, 17 May 2019 17:47:31 +0200 Message-ID: From: Takashi Iwai To: Cc: , , Subject: Re: [PATCH] sound: open brace should be on the previous line In-Reply-To: <20190517063328.21512-1-parna.naveenkumar@gmail.com> References: <20190517063328.21512-1-parna.naveenkumar@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 May 2019 08:33:28 +0200, wrote: > > From: Naveen Kumar Parna > > Resolved open brace { should be on the previous line checkpatch.pl > error. While addressing this error, also corrected the affected code > for below mentioned checkpatch errors. > > ERROR: spaces required around that '<' (ctx:VxV) > ERROR: spaces required around that '==' (ctx:VxV) > ERROR: space required before the open parenthesis '(' > > Signed-off-by: Naveen Kumar Parna Basically I'd take this kind of coding style cleanup only when really needed as a preliminary work. If you have a real fix after this, please send a patch series together, otherwise this will be skipped. thanks, Takashi > --- > sound/sound_core.c | 21 +++++++-------------- > 1 file changed, 7 insertions(+), 14 deletions(-) > > diff --git a/sound/sound_core.c b/sound/sound_core.c > index 40ad000c2e3c..ce794a2afc6b 100644 > --- a/sound/sound_core.c > +++ b/sound/sound_core.c > @@ -111,8 +111,7 @@ module_exit(cleanup_soundcore); > > #define SOUND_STEP 16 > > -struct sound_unit > -{ > +struct sound_unit { > int unit_minor; > const struct file_operations *unit_fops; > struct sound_unit *next; > @@ -151,8 +150,7 @@ module_param(preclaim_oss, int, 0444); > > static int soundcore_open(struct inode *, struct file *); > > -static const struct file_operations soundcore_fops = > -{ > +static const struct file_operations soundcore_fops = { > /* We must have an owner or the module locking fails */ > .owner = THIS_MODULE, > .open = soundcore_open, > @@ -173,8 +171,7 @@ static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, > while (*list && (*list)->unit_minor list=&((*list)->next); > > - while(n - { > + while (n < top) { > /* Found a hole ? */ > if(*list==NULL || (*list)->unit_minor>n) > break; > @@ -219,11 +216,9 @@ static int __sound_insert_unit(struct sound_unit * s, struct sound_unit **list, > > static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit) > { > - while(*list) > - { > + while (*list) { > struct sound_unit *p=*list; > - if(p->unit_minor==unit) > - { > + if (p->unit_minor == unit) { > *list=p->next; > return p; > } > @@ -528,8 +523,7 @@ static struct sound_unit *__look_for_unit(int chain, int unit) > struct sound_unit *s; > > s=chains[chain]; > - while(s && s->unit_minor <= unit) > - { > + while (s && s->unit_minor <= unit) { > if(s->unit_minor==unit) > return s; > s=s->next; > @@ -545,8 +539,7 @@ static int soundcore_open(struct inode *inode, struct file *file) > const struct file_operations *new_fops = NULL; > > chain=unit&0x0F; > - if(chain==4 || chain==5) /* dsp/audio/dsp16 */ > - { > + if (chain == 4 || chain == 5) { /* dsp/audio/dsp16 */ > unit&=0xF0; > unit|=3; > chain=3; > -- > 2.17.1 > >