From: Wentao Cai Date: Wed, 13 Mar 2019 08:14:53 +0000 (-0700) Subject: staging: gasket: Replace macro __ATTR with __ATTR_NULL X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=84c45d5f3bf15a6c5f5b53a972b41fc9e9ff17d6;p=linux.git 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'. Signed-off-by: Wentao Cai Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gasket/gasket_sysfs.h b/drivers/staging/gasket/gasket_sysfs.h index 151e8edd28ea6..1d0eed66a7f49 100644 --- a/drivers/staging/gasket/gasket_sysfs.h +++ b/drivers/staging/gasket/gasket_sysfs.h @@ -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, \ } /*