mirror of
https://github.com/sysprog21/lkmpg.git
synced 2024-11-24 21:54:26 +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
|
||||
|
|
|
@ -29,8 +29,7 @@ ssize_t procfile_read(struct file *filePointer,
|
|||
if (*offset >= len || copy_to_user(buffer, s, len)) {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
pr_info("procfile read %s\n", filePointer->f_path.dentry->d_name.name);
|
||||
*offset += len;
|
||||
}
|
||||
|
|
|
@ -49,8 +49,7 @@ ssize_t procfile_read(struct file *filePointer,
|
|||
if (*offset >= len || copy_to_user(buffer, s, len)) {
|
||||
pr_info("copy_to_user failed\n");
|
||||
ret = 0;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
pr_info("procfile read %s\n", filePointer->f_path.dentry->d_name.name);
|
||||
*offset += len;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user