]> err.no Git - linux-2.6/commit
cxgb3: Fix __must_check warning with dev_dbg.
authorDan Noe <dpn@isomerica.net>
Sun, 13 Apr 2008 02:34:38 +0000 (22:34 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:31:32 +0000 (15:31 -0400)
commitd96a51f6b8040ef2b25b88032f23ffdb1ddba681
tree81bd4f2e45e9d10346d685c3f1f8142cae790a1d
parent10e05f78c5566cb762ced12bf70307c60168d56e
cxgb3: Fix __must_check warning with dev_dbg.

Fix the warning:
drivers/net/cxgb3/cxgb3_main.c: In function ‘offload_open’:
drivers/net/cxgb3/cxgb3_main.c:936: warning: ignoring return value of
 ‘sysfs_create_group’, declared with attribute warn_unused_result

Now the return value is checked; if sysfs_create_group() returns failure,
a warning is printed using dev_dbg, and the code continues as before.  Use
of dev_dbg ensures printk is not needlessly included unless desired for
debugging.

Signed-off-by: Dan Noe <dpn@isomerica.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/cxgb3/cxgb3_main.c