Re: [PATCH 5/6] rio: warn_unused_result warnings fix

From: Kumar Gala
Date: Thu Jun 11 2009 - 01:02:21 EST



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 <leoli@xxxxxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/