Skip to content

Commit

Permalink
[PATCH] isdn4linux: Gigaset driver: fix __must_check warning
Browse files Browse the repository at this point in the history
This patch to the Siemens Gigaset driver fixes the compile warning
"ignoring return value of 'class_device_create_file', declared with
attribute warn_unused_result" appearing with CONFIG_ENABLE_MUST_CHECK=y in
release 2.6.18-rc1-mm1.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Acked-by: Hansjoerg Lipp <hjlipp@web.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Tilman Schmidt authored and Linus Torvalds committed Oct 2, 2006
1 parent 8bb31b9 commit fd0fbcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/isdn/gigaset/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@ void gigaset_init_dev_sysfs(struct cardstate *cs)
return;

gig_dbg(DEBUG_INIT, "setting up sysfs");
class_device_create_file(cs->class, &class_device_attr_cidmode);
if (class_device_create_file(cs->class, &class_device_attr_cidmode))
dev_err(cs->dev, "could not create sysfs attribute\n");
}

0 comments on commit fd0fbcc

Please sign in to comment.