diff options
author | Tilman Schmidt <tilman@imap.cc> | 2006-10-02 05:17:37 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-02 10:57:16 -0400 |
commit | fd0fbcc27fd72a11dacc3f1a1681ee4dfd256a0b (patch) | |
tree | 174ad2a7044a04b878c89cd407e8e63435efd4f3 /drivers/isdn/gigaset | |
parent | 8bb31b9d5340ed3dfef45d322f59fcf18a0d598b (diff) |
[PATCH] isdn4linux: Gigaset driver: fix __must_check warning
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>
Diffstat (limited to 'drivers/isdn/gigaset')
-rw-r--r-- | drivers/isdn/gigaset/proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/isdn/gigaset/proc.c b/drivers/isdn/gigaset/proc.c index 9ae3a7f3e7b3..9ad840e95dbe 100644 --- a/drivers/isdn/gigaset/proc.c +++ b/drivers/isdn/gigaset/proc.c | |||
@@ -83,5 +83,6 @@ void gigaset_init_dev_sysfs(struct cardstate *cs) | |||
83 | return; | 83 | return; |
84 | 84 | ||
85 | gig_dbg(DEBUG_INIT, "setting up sysfs"); | 85 | gig_dbg(DEBUG_INIT, "setting up sysfs"); |
86 | class_device_create_file(cs->class, &class_device_attr_cidmode); | 86 | if (class_device_create_file(cs->class, &class_device_attr_cidmode)) |
87 | dev_err(cs->dev, "could not create sysfs attribute\n"); | ||
87 | } | 88 | } |