xt_helper: use ARRAY_SIZE()
Subsystems (3)
PATCH v2 1/1 xt_helper: use ARRAY_SIZE()
use ARRAY_SIZE() to improve the readability.
Signed-off-by Changli Gao <[email protected]>
----
net/netfilter/xt_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/xt_helper.c +1 -1
@@ -65,7 +65,7 @@ static int helper_mt_check(const struct xt_mtchk_param *par) par->family);return ret; } - info->name[29 ] ='\0' ; + info->name[ARRAY_SIZE (info->name) -1 ] ='\0' ;return 0 ; }