inotify_handle_event(): don't bother with strlen()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2019-04-26 13:55:21 -04:00
parent e43e9c339a
commit ce163918cd

View File

@ -89,7 +89,7 @@ int inotify_handle_event(struct fsnotify_group *group,
return 0; return 0;
} }
if (file_name) { if (file_name) {
len = strlen(file_name->name); len = file_name->len;
alloc_len += len + 1; alloc_len += len + 1;
} }