]> err.no Git - linux-2.6/commitdiff
[PATCH] isdn4linux: Gigaset driver: fix __must_check warning
authorTilman Schmidt <tilman@imap.cc>
Mon, 2 Oct 2006 09:17:37 +0000 (02:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 2 Oct 2006 14:57:16 +0000 (07:57 -0700)
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>
drivers/isdn/gigaset/proc.c

index 9ae3a7f3e7b3724982ce68bc75a37ae215766a6a..9ad840e95dbe8247928b6191fcedcac8fe2ab63b 100644 (file)
@@ -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");
 }