mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 21:38:32 +08:00
inotify_handle_event(): don't bother with strlen()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e43e9c339a
commit
ce163918cd
@ -89,7 +89,7 @@ int inotify_handle_event(struct fsnotify_group *group,
|
||||
return 0;
|
||||
}
|
||||
if (file_name) {
|
||||
len = strlen(file_name->name);
|
||||
len = file_name->len;
|
||||
alloc_len += len + 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user