X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fsysfs%2Ffile.c;h=c9e4e5091da14c24b185b67419f3207188150f96;hb=75d95062185c60356a423f7ab9e975b4293ec4f3;hp=3f07893ff8968a483f4c5fc45646c80e3535966f;hpb=e9f76354ce83a20c7768ad37caa033f6506b4f96;p=linux-2.6 diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 3f07893ff8..c9e4e5091d 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -337,9 +337,8 @@ static int sysfs_open_file(struct inode *inode, struct file *file) if (kobj->ktype && kobj->ktype->sysfs_ops) ops = kobj->ktype->sysfs_ops; else { - printk(KERN_ERR "missing sysfs attribute operations for " + WARN(1, KERN_ERR "missing sysfs attribute operations for " "kobject: %s\n", kobject_name(kobj)); - WARN_ON(1); goto err_out; }