Skip to content

Commit 28986dd

Browse files
Kanchan Joshibrauner
authored andcommitted
fcntl: trim arguments
Remove superfluous argument from fcntl_{get/set}_rw_hint. No functional change. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
1 parent c1f86d0 commit 28986dd

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

fs/fcntl.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ static bool rw_hint_valid(u64 hint)
355355
}
356356
}
357357

358-
static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
359-
unsigned long arg)
358+
static long fcntl_get_rw_hint(struct file *file, unsigned long arg)
360359
{
361360
struct inode *inode = file_inode(file);
362361
u64 __user *argp = (u64 __user *)arg;
@@ -367,8 +366,7 @@ static long fcntl_get_rw_hint(struct file *file, unsigned int cmd,
367366
return 0;
368367
}
369368

370-
static long fcntl_set_rw_hint(struct file *file, unsigned int cmd,
371-
unsigned long arg)
369+
static long fcntl_set_rw_hint(struct file *file, unsigned long arg)
372370
{
373371
struct inode *inode = file_inode(file);
374372
u64 __user *argp = (u64 __user *)arg;
@@ -547,10 +545,10 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
547545
err = memfd_fcntl(filp, cmd, argi);
548546
break;
549547
case F_GET_RW_HINT:
550-
err = fcntl_get_rw_hint(filp, cmd, arg);
548+
err = fcntl_get_rw_hint(filp, arg);
551549
break;
552550
case F_SET_RW_HINT:
553-
err = fcntl_set_rw_hint(filp, cmd, arg);
551+
err = fcntl_set_rw_hint(filp, arg);
554552
break;
555553
default:
556554
break;

0 commit comments

Comments
 (0)