diff options
author | Joe Perches <joe@perches.com> | 2018-05-24 21:38:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-24 21:38:59 +0200 |
commit | 5657a819a8d94426c76be04dcedfad0f64cfff00 (patch) | |
tree | 62834703d02999728dd5c0c0c3842ffe525d6182 /drivers/block/nbd.c | |
parent | blk-mq: avoid starving tag allocation after allocating process migrates (diff) | |
download | linux-5657a819a8d94426c76be04dcedfad0f64cfff00.tar.xz linux-5657a819a8d94426c76be04dcedfad0f64cfff00.zip |
block drivers/block: Use octal not symbolic permissions
Convert the S_<FOO> symbolic permissions to their octal equivalents as
using octal and not symbolic permissions is preferred by many as more
readable.
see: https://lkml.org/lkml/2016/8/2/1945
Done with automated conversion via:
$ ./scripts/checkpatch.pl -f --types=SYMBOLIC_PERMS --fix-inplace <files...>
Miscellanea:
o Wrapped modified multi-line calls to a single line where appropriate
o Realign modified multi-line calls to open parenthesis
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/nbd.c')
-rw-r--r-- | drivers/block/nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index bdfbb2a7018c..800e1ec71f3d 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -166,7 +166,7 @@ static ssize_t pid_show(struct device *dev, } static const struct device_attribute pid_attr = { - .attr = { .name = "pid", .mode = S_IRUGO}, + .attr = { .name = "pid", .mode = 0444}, .show = pid_show, }; |