Skip to content

Commit

Permalink
[POWERPC] of_device_register: propagate device_create_file return code
Browse files Browse the repository at this point in the history
Removed compiler warning about ignoring the return code of device_create_file
in of_device_register.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kumar Gala committed Dec 8, 2006
1 parent c997679 commit 39043a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/kernel/of_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ int of_device_register(struct of_device *ofdev)
if (rc)
return rc;

device_create_file(&ofdev->dev, &dev_attr_devspec);

return 0;
return device_create_file(&ofdev->dev, &dev_attr_devspec);
}

void of_device_unregister(struct of_device *ofdev)
Expand Down

0 comments on commit 39043a5

Please sign in to comment.