Skip to contentSkip to conversation

Staging: gasket: Replace macro __ATTR with __ATTR_NULL

PATCH New Wentao Cai 1 participant 1 message Mar 13, 2019 Staging

lore
Share & tools
lore

Wentao Cai

author
#0 lore raw

PATCH 1/1 Staging: gasket: Replace macro __ATTR with __ATTR_NULL

Replace macro __ATTR with __ATTR_NULL since the former one is unnecessary for gasket_sysfs_attr array terminator. Also silence the checkpatch.pl warning:
WARNING:Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal
permissions '0444'.

---
 drivers/staging/gasket/gasket_sysfs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/gasket/gasket_sysfs.h +2 -2
index 151e8edd28ea..1d0eed66a7f4 100644
@@ -40,8 +40,8 @@
  */
 #define GASKET_END_OF_ATTR_ARRAY                                               \
 	{                                                                      \
-		.attr = __ATTR(GASKET_ARRAY_END_TOKEN, S_IRUGO, NULL, NULL),   \
-		.data.attr_type = 0,                                           \
+		.attr = __ATTR_NULL,				\
+		.data.attr_type = 0,				\
 	}
 
 /*
Signature · 1 line
2.11.0