Commit db6e863d authored by Naveen Kumar Parna's avatar Naveen Kumar Parna Committed by Greg Kroah-Hartman

efirtc: remove unnecessary code efi_rtc_open & efi_rtc_close

There is no advantage to keep 'struct file_operations.open & .close'
API's. So removed the unnecessary code efi_rtc_open & efi_rtc_close.
Signed-off-by: default avatarNaveen Kumar Parna <parna.naveenkumar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 54557665
...@@ -254,27 +254,6 @@ static long efi_rtc_ioctl(struct file *file, unsigned int cmd, ...@@ -254,27 +254,6 @@ static long efi_rtc_ioctl(struct file *file, unsigned int cmd,
return -ENOTTY; return -ENOTTY;
} }
/*
* We enforce only one user at a time here with the open/close.
* Also clear the previous interrupt data on an open, and clean
* up things on a close.
*/
static int efi_rtc_open(struct inode *inode, struct file *file)
{
/*
* nothing special to do here
* We do accept multiple open files at the same time as we
* synchronize on the per call operation.
*/
return 0;
}
static int efi_rtc_close(struct inode *inode, struct file *file)
{
return 0;
}
/* /*
* The various file operations we support. * The various file operations we support.
*/ */
...@@ -282,8 +261,6 @@ static int efi_rtc_close(struct inode *inode, struct file *file) ...@@ -282,8 +261,6 @@ static int efi_rtc_close(struct inode *inode, struct file *file)
static const struct file_operations efi_rtc_fops = { static const struct file_operations efi_rtc_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.unlocked_ioctl = efi_rtc_ioctl, .unlocked_ioctl = efi_rtc_ioctl,
.open = efi_rtc_open,
.release = efi_rtc_close,
.llseek = no_llseek, .llseek = no_llseek,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment