projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc24447
)
mISDN: remove unnecessary test on f_pos
author
Jan Blunck
<
[email protected]
>
Wed, 26 May 2010 21:44:46 +0000
(14:44 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 27 May 2010 16:12:56 +0000
(09:12 -0700)
This test is not doing anything since it is always false if the
mISDN_read() is called from vfs_read(). Besides that the driver uses
nonseekable_open() and is not using off or file->f_pos anywhere.
Signed-off-by: Jan Blunck <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
Cc: Karsten Keil <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/isdn/mISDN/timerdev.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/mISDN/timerdev.c
b/drivers/isdn/mISDN/timerdev.c
index c3243c913ec033b570c04678c6408efa8e13a694..81048b8ed8ad97b7890f631155c77264c35fd98d 100644
(file)
--- a/
drivers/isdn/mISDN/timerdev.c
+++ b/
drivers/isdn/mISDN/timerdev.c
@@
-98,8
+98,6
@@
mISDN_read(struct file *filep, char __user *buf, size_t count, loff_t *off)
if (*debug & DEBUG_TIMER)
printk(KERN_DEBUG "%s(%p, %p, %d, %p)\n", __func__,
filep, buf, (int)count, off);
- if (*off != filep->f_pos)
- return -ESPIPE;
if (list_empty(&dev->expired) && (dev->work == 0)) {
if (filep->f_flags & O_NONBLOCK)