[RFC PATCH 2.6.18-rc4-mm1] hwmon: unchecked return status fixes

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

 



Hi Jean:

* Jean Delvare <khali at linux-fr.org> [2006-08-14 15:02:21 +0200]:
> 	if (kind != w83697hf) {
> 		if ((err = device_create_file(&new_client->dev,
> 					&dev_attr_in1_input))
> 		 || (err = device_create_file(&new_client->dev,
> 					&dev_attr_in1_min))
> 		 || (err = device_create_file(&new_client->dev,
> 					&dev_attr_in1_max)))
> 			goto ERROR4;
> 	}
> 
> More concise and it works just as fine, doesn't it? Same applies below.

Agreed.

> Maybe you can also group the two (kind != w83697hf) blocks?

I already combined one (compared to original code)... so, yeah.

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com





[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux