rio: warn_unused_result warnings fix

Adding failure path for the following two cases.

warning: ignoring return value of 'device_add', declared with attribute warn_unused_result
warning: ignoring return value of 'sysfs_create_bin_file', declared with attribute warn_unused_result

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
Yang Li
2009-05-11 22:36:02 +00:00
committed by Kumar Gala
parent 7b9edb9d61
commit 5f28c52003
2 changed files with 30 additions and 19 deletions

View File

@@ -214,9 +214,11 @@ static struct bin_attribute rio_config_attr = {
*/
int rio_create_sysfs_dev_files(struct rio_dev *rdev)
{
sysfs_create_bin_file(&rdev->dev.kobj, &rio_config_attr);
int err = 0;
return 0;
err = sysfs_create_bin_file(&rdev->dev.kobj, &rio_config_attr);
return err;
}
/**