Re: [PATCH V3] hwmon: driver for Sensirion SHT21 humidity and temperature sensor

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Guenter Roeck
Date: Monday, January 3, 2011 - 8:12 am

On Mon, Jan 03, 2011 at 09:01:34AM -0500, Urs Fleisch wrote:

All the above shows up in the commit log if the patch is applied. Just adds
additional work for the maintainers.

[ ...] 

Highly unusual way of detecting and returning errors. Common would be

	if (result < 0)
		return result;
	/* other code */

ie keep the code flow intact. Makes the code much easier to read.

Guenter
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH V3] hwmon: driver for Sensirion SHT21 humidity ..., Guenter Roeck, (Mon Jan 3, 8:12 am)