Re: [PATCH] staging: gdm72xx: remove unneeded test

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

 



On Thu, 2015-05-28 at 10:33 +0200, Julia Lawall wrote:
> On Thu, 28 May 2015, Joe Perches wrote:
> I think these are very equivalent style to
> > the repeated:
> >
> > 	ret = foo();
> > 	if (ret < 0)
> > 		return ret;
> > ...
> > 	ret = bar();
> > 	if (ret < 0)
> > 		return ret;
> >
> > 	return ret;
> >
> > and people seem to prefer changing those.
> 
> Maybe if there is a whole sequence of them, it it is reasonable to keep
> them.  But if there is just one, it seems complicated for nothing.

Agree with that.
https://lkml.org/lkml/2015/1/2/321

> In the
> big scheme of things, though, there are probably better things one could
> do than changing all of them.

Agree with that too.


_______________________________________________
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