瀏覽代碼

Merge pull request #274 from NOVBobLee/pr_patch2

Remove the redundant code
Jim Huang 6 月之前
父節點
當前提交
3203aa3ce5
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
 }