mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-28 11:23:35 +08:00
Enforce consistent style
Execute "make indent" before submitting patches.
This commit is contained in:
parent
43f20d0279
commit
a26d93037e
3
Makefile
3
Makefile
|
@ -12,6 +12,9 @@ html: lkmpg.tex html.cfg
|
|||
ln -sf lkmpg.html html/index.html
|
||||
rm -f lkmpg.xref lkmpg.tmp lkmpg.html lkmpg.css lkmpg.4ct lkmpg.4tc lkmpg.dvi lkmpg.lg lkmpg.idv lkmpg*.svg lkmpg.log lkmpg.aux
|
||||
|
||||
indent:
|
||||
(cd examples; find . -name '*.[ch]' | xargs clang-format -i)
|
||||
|
||||
clean:
|
||||
rm -f *.dvi *.aux *.log *.ps *.pdf *.out lkmpg.bbl lkmpg.blg lkmpg.lof lkmpg.toc
|
||||
rm -rf _minted-lkmpg
|
||||
|
|
|
@ -27,10 +27,9 @@ ssize_t procfile_read(struct file *filePointer,
|
|||
ssize_t ret = len;
|
||||
|
||||
if (*offset >= len || copy_to_user(buffer, s, len)) {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
} else {
|
||||
pr_info("procfile read %s\n", filePointer->f_path.dentry->d_name.name);
|
||||
*offset += len;
|
||||
}
|
||||
|
|
|
@ -47,10 +47,9 @@ ssize_t procfile_read(struct file *filePointer,
|
|||
ssize_t ret = len;
|
||||
|
||||
if (*offset >= len || copy_to_user(buffer, s, len)) {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
} else {
|
||||
pr_info("procfile read %s\n", filePointer->f_path.dentry->d_name.name);
|
||||
*offset += len;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user