Skip to content

Commit 3203aa3

Browse files
authored
Merge pull request #274 from NOVBobLee/pr_patch2
Remove the redundant code
2 parents 2eadbb1 + 2a04a64 commit 3203aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hello-sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static ssize_t myvariable_store(struct kobject *kobj,
2323
struct kobj_attribute *attr, char *buf,
2424
size_t count)
2525
{
26-
sscanf(buf, "%du", &myvariable);
26+
sscanf(buf, "%d", &myvariable);
2727
return count;
2828
}
2929

0 commit comments

Comments
 (0)