From: Dan Noe Date: Sun, 13 Apr 2008 02:34:38 +0000 (-0400) Subject: cxgb3: Fix __must_check warning with dev_dbg. X-Git-Tag: v2.6.26-rc1~1138^2~8^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d96a51f6b8040ef2b25b88032f23ffdb1ddba681;p=pandora-kernel.git 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 Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed