perf_event_get(): don't bother with fget_raw()

... since we immediately follow that with check that it *is* an
opened perf file, with O_PATH ones ending with with the same
-EBADF we'd get for descriptor that isn't opened at all.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

Al Viro 02e5ad97 8811249f

Changed files
+1 -3
kernel
events
+1 -3
kernel/events/core.c
··· 11554 11554 11555 11555 struct file *perf_event_get(unsigned int fd) 11556 11556 { 11557 - struct file *file; 11558 - 11559 - file = fget_raw(fd); 11557 + struct file *file = fget(fd); 11560 11558 if (!file) 11561 11559 return ERR_PTR(-EBADF); 11562 11560