lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <da73ff53-a1ec-ff6e-a811-6da71f8cc756@amd.com>
Date:   Mon, 15 May 2023 11:33:20 +0200
From:   Michal Simek <michal.simek@....com>
To:     Bo Svangård <bo.svangard@...og.se>,
        derek.kiernan@...inx.com, dragan.cvetic@...inx.com, arnd@...db.de,
        gregkh@...uxfoundation.org, michal.simek@...inx.com,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] misc/xilinx_sdfec: remove redundant _{open, release}
 function



On 4/22/23 21:59, Bo Svangård wrote:
> 
> The functions are redundant as they are empty and performed by the misc
> driver.
> 
> Signed-off-by: Bo Svangård <bo.svangard@...og.se>
> ---
>   drivers/misc/xilinx_sdfec.c | 12 ------------
>   1 file changed, 12 deletions(-)
> 
> diff --git a/drivers/misc/xilinx_sdfec.c b/drivers/misc/xilinx_sdfec.c
> index cb9506f9cbd0..270ff4c5971a 100644
> --- a/drivers/misc/xilinx_sdfec.c
> +++ b/drivers/misc/xilinx_sdfec.c
> @@ -855,16 +855,6 @@ static int xsdfec_cfg_axi_streams(struct xsdfec_dev *xsdfec)
>          return 0;
>   }
> 
> -static int xsdfec_dev_open(struct inode *iptr, struct file *fptr)
> -{
> -       return 0;
> -}
> -
> -static int xsdfec_dev_release(struct inode *iptr, struct file *fptr)
> -{
> -       return 0;
> -}
> -
>   static int xsdfec_start(struct xsdfec_dev *xsdfec)
>   {
>          u32 regread;
> @@ -1030,8 +1020,6 @@ static __poll_t xsdfec_poll(struct file *file, poll_table *wait)
> 
>   static const struct file_operations xsdfec_fops = {
>          .owner = THIS_MODULE,
> -       .open = xsdfec_dev_open,
> -       .release = xsdfec_dev_release,
>          .unlocked_ioctl = xsdfec_dev_ioctl,
>          .poll = xsdfec_poll,
>          .compat_ioctl = compat_ptr_ioctl,
> --
> 2.40.0
> 

Acked-by: Michal Simek <michal.simek@....com>

Thanks,
Michal

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ