ethernet: 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> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d61e403856
commit
d3757ba4c1
@ -146,7 +146,7 @@ static int ixgbe_add_hwmon_attr(struct ixgbe_adapter *adapter,
|
||||
&adapter->hw.mac.thermal_sensor_data.sensor[offset];
|
||||
ixgbe_attr->hw = &adapter->hw;
|
||||
ixgbe_attr->dev_attr.store = NULL;
|
||||
ixgbe_attr->dev_attr.attr.mode = S_IRUGO;
|
||||
ixgbe_attr->dev_attr.attr.mode = 0444;
|
||||
ixgbe_attr->dev_attr.attr.name = ixgbe_attr->name;
|
||||
sysfs_attr_init(&ixgbe_attr->dev_attr.attr);
|
||||
|
||||
|
Reference in New Issue
Block a user