소스 검색

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;
 }