projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6be834c
)
mtd: rawnand: nandsim: Use octal permissions
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 25 May 2020 08:58:36 +0000
(10:58 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Sun, 31 May 2020 08:53:37 +0000
(10:53 +0200)
Symbolic permissions 'S_IRUSR' are not preferred. Checkpatch.pl
advises to use octal permissions '0400'.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link:
https://lore.kernel.org/linux-mtd/20200525085851.17682-3-miquel.raynal@bootlin.com
drivers/mtd/nand/raw/nandsim.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/nandsim.c
b/drivers/mtd/nand/raw/nandsim.c
index
0062e4f
..
ea46f70
100644
(file)
--- a/
drivers/mtd/nand/raw/nandsim.c
+++ b/
drivers/mtd/nand/raw/nandsim.c
@@
-508,7
+508,7
@@
static int nandsim_debugfs_create(struct nandsim *ns)
return 0;
}
- dent = debugfs_create_file("nandsim_wear_report",
S_IRUSR
, root, ns,
+ dent = debugfs_create_file("nandsim_wear_report",
0400
, root, ns,
&nandsim_fops);
if (IS_ERR_OR_NULL(dent)) {
NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");