Re: [PATCH 1/4] staging: dgnc: audit goto's in dgnc_driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 08, 2017 at 08:06:31AM +1100, Tobin C. Harding wrote:
> On Tue, Mar 07, 2017 at 08:03:51PM +0300, Dan Carpenter wrote:
> > On Tue, Mar 07, 2017 at 05:33:06PM +1100, Tobin C. Harding wrote:
> > > @@ -419,17 +411,14 @@ static int dgnc_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> > >  	brd->dpastatus = BD_RUNNING;
> > >  
> > >  	dgnc_board[dgnc_num_boards++] = brd;
> > > -
> > >  	return 0;
> > >  
> > 
> > There's nothing wrong with putting a blank before a return 0.  The blank
> > sort of makes it stand out nicely.
> 
> I thought this one would get a comment :) The reasoning was to be
> uniform across the whole directory. Originally some returns were
> preceded by a new line while others were not. I picked one and went for
> uniformity. Is this level of uniformity too much? Is it better to be
> less pedantic and have less code churn?
> 

It's actually already uniform.  If the function ends in "return 0;"
there is a blank line.  If the "return 0;" is in the middle there isn't.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux