Unverified Commit 28986dd7 authored by Kanchan Joshi's avatar Kanchan Joshi Committed by Christian Brauner
Browse files

fcntl: trim arguments



Remove superfluous argument from fcntl_{get/set}_rw_hint.
No functional change.

Signed-off-by: default avatarKanchan Joshi <joshi.k@samsung.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent c1f86d0a
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -355,8 +355,7 @@ static bool rw_hint_valid(u64 hint)
	}
}

static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
			      unsigned long arg)
static long fcntl_get_rw_hint(struct file *file, unsigned long arg)
{
	struct inode *inode = file_inode(file);
	u64 __user *argp = (u64 __user *)arg;
@@ -367,8 +366,7 @@ static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
	return 0;
}

static long fcntl_set_rw_hint(struct file *file, unsigned int cmd,
			      unsigned long arg)
static long fcntl_set_rw_hint(struct file *file, unsigned long arg)
{
	struct inode *inode = file_inode(file);
	u64 __user *argp = (u64 __user *)arg;
@@ -547,10 +545,10 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
		err = memfd_fcntl(filp, cmd, argi);
		break;
	case F_GET_RW_HINT:
		err = fcntl_get_rw_hint(filp, cmd, arg);
		err = fcntl_get_rw_hint(filp, arg);
		break;
	case F_SET_RW_HINT:
		err = fcntl_set_rw_hint(filp, cmd, arg);
		err = fcntl_set_rw_hint(filp, arg);
		break;
	default:
		break;