compat_ioctl: don't pass fd around when not needed
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include <linux/writeback.h>
|
||||
#include <linux/buffer_head.h>
|
||||
#include <linux/falloc.h>
|
||||
#include "internal.h"
|
||||
|
||||
#include <asm/ioctls.h>
|
||||
|
||||
@@ -32,8 +33,7 @@
|
||||
*
|
||||
* Returns 0 on success, -errno on error.
|
||||
*/
|
||||
static long vfs_ioctl(struct file *filp, unsigned int cmd,
|
||||
unsigned long arg)
|
||||
long vfs_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
||||
{
|
||||
int error = -ENOTTY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user