Commit beaa37ff authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[WATCHDOG] Remove unnecessary llseek function

parent c6b9684d
...@@ -253,11 +253,6 @@ static int fop_close(struct inode * inode, struct file * file) ...@@ -253,11 +253,6 @@ static int fop_close(struct inode * inode, struct file * file)
return 0; return 0;
} }
static long long fop_llseek(struct file *file, long long offset, int origin)
{
return -ESPIPE;
}
static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd, static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg) unsigned long arg)
{ {
...@@ -282,7 +277,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd, ...@@ -282,7 +277,7 @@ static int fop_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
static struct file_operations wdt_fops = { static struct file_operations wdt_fops = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
.llseek = fop_llseek, .llseek = no_llseek,
.write = fop_write, .write = fop_write,
.open = fop_open, .open = fop_open,
.release = fop_close, .release = fop_close,
......
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