# Re: \[PATCH 5/6\] rio: warn\_unused\_result warnings fix

- From: Kumar Gala \<hidden\>
- Date: 2009-06-11 05:02:17 
- List: netdev
- Page: https://ratatoskr.run/netdev/2009/06/1262403
- Thread: https://ratatoskr.run/netdev/2009/05/1249321/t.md

```text

On May 12, 2009, at 3:36 AM, Li Yang wrote:

> 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 <redacted>
> ---
> drivers/rapidio/rio-scan.c  |   44 ++++++++++++++++++++++++++----------------
> drivers/rapidio/rio-sysfs.c |    6 +++-
> 2 files changed, 31 insertions(+), 19 deletions(-)

applied w/fixup based on Andrew's comments.

- k
```
