Pārlūkot izejas kodu

Merge pull request #274 from NOVBobLee/pr_patch2

Remove the redundant code
Jim Huang 6 mēneši atpakaļ
vecāks
revīzija
3203aa3ce5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      examples/hello-sysfs.c

+ 1 - 1
examples/hello-sysfs.c

@@ -23,7 +23,7 @@ static ssize_t myvariable_store(struct kobject *kobj,
                                 struct kobj_attribute *attr, char *buf,
                                 size_t count)
 {
-    sscanf(buf, "%du", &myvariable);
+    sscanf(buf, "%d", &myvariable);
     return count;
 }