Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

misc/xilinx_sdfec: remove redundant _{open, release} function

The functions are redundant as they are empty and performed by the misc
driver.

Signed-off-by: Bo Svangård <bo.svangard@sylog.se>
Acked-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/20230422195933.523874-1-bo.svangard@sylog.se
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bo Svangård and committed by
Greg Kroah-Hartman
f5070bf0 0f2c1f80

-12
-12
drivers/misc/xilinx_sdfec.c
··· 855 855 return 0; 856 856 } 857 857 858 - static int xsdfec_dev_open(struct inode *iptr, struct file *fptr) 859 - { 860 - return 0; 861 - } 862 - 863 - static int xsdfec_dev_release(struct inode *iptr, struct file *fptr) 864 - { 865 - return 0; 866 - } 867 - 868 858 static int xsdfec_start(struct xsdfec_dev *xsdfec) 869 859 { 870 860 u32 regread; ··· 1020 1030 1021 1031 static const struct file_operations xsdfec_fops = { 1022 1032 .owner = THIS_MODULE, 1023 - .open = xsdfec_dev_open, 1024 - .release = xsdfec_dev_release, 1025 1033 .unlocked_ioctl = xsdfec_dev_ioctl, 1026 1034 .poll = xsdfec_poll, 1027 1035 .compat_ioctl = compat_ptr_ioctl,