Re: [PATCH v2 6/7] staging: dgnc: Siplify the dgnc_start function

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

 



Sorry, I meant that "return directly" applied for all the new gotos.
Don't do this:

	rc = -ENXIO;
	goto exit;

...
exit:
	return rc;

It just makes the code harder to read.  Do this:

	return -ENXIO;

without all the goto leap hop jumping around.

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