staging: gasket: Replace macro __ATTR with __ATTR_NULL
authorWentao Cai <etsai042@gmail.com>
Wed, 13 Mar 2019 08:14:53 +0000 (01:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:58 +0000 (07:05 +0100)
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'.

Signed-off-by: Wentao Cai <etsai042@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gasket/gasket_sysfs.h

index 151e8edd28ea63e6ec0cc4f396d1704848912781..1d0eed66a7f49fe2bf6088564cf53e549cd3b3fe 100644 (file)
@@ -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,                            \
        }
 
 /*