]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: remove variable set but not used
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 20 Jan 2022 12:57:22 +0000 (13:57 +0100)
committerJan Kara <jack@suse.cz>
Thu, 20 Jan 2022 12:57:22 +0000 (13:57 +0100)
commite8d408aeec1f55e638f855a483ad6fe8aca767d4
treeb6798d7560f2d344d04c7fd027d9f98fd4b47eb3
parent24ddd0c843a659fff8b8fcce9b10e2de9210f0bb
fanotify: remove variable set but not used

The code that uses the pointer info has been removed in e80543899d8d
("fanotify: report old and/or new parent+name in FAN_RENAME event").
and fanotify_event_info() doesn't change 'event', so the declaration and
assignment of info can be removed.

Eliminate the following clang warning:
fs/notify/fanotify/fanotify_user.c:161:24: warning: variable ‘info’ set
but not used

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c