mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00: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