Re: [PATCH 2/2] fs: remove ksys_dup()

From: Linus Torvalds
Date: Thu Dec 12 2019 - 12:09:53 EST


On Thu, Dec 12, 2019 at 6:08 AM Dominik Brodowski
<linux@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> - if (ksys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
> + file = filp_open((const char *) "/dev/console", O_RDWR, 0);

You need to remove the now pointless cast too.

Linus