drivers/net: Use octal not symbolic permissions
Prefer the direct use of octal for permissions. Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace and some typing. Miscellanea: o Whitespace neatening around these conversions. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
d6444062f8
commit
d61e403856
@@ -25,8 +25,8 @@ const struct slave_attribute slave_attr_##_name = { \
|
||||
.mode = _mode }, \
|
||||
.show = _show, \
|
||||
};
|
||||
#define SLAVE_ATTR_RO(_name) \
|
||||
SLAVE_ATTR(_name, S_IRUGO, _name##_show)
|
||||
#define SLAVE_ATTR_RO(_name) \
|
||||
SLAVE_ATTR(_name, 0444, _name##_show)
|
||||
|
||||
static ssize_t state_show(struct slave *slave, char *buf)
|
||||
{
|
||||
|
Reference in New Issue
Block a user