From: Jan Blunck Date: Wed, 26 May 2010 21:44:46 +0000 (-0700) Subject: mISDN: remove unnecessary test on f_pos X-Git-Tag: upstream/snapshot3+hdmi~14155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b627dbce6b5524c7c9032738bb60538999f45d41;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mISDN: remove unnecessary test on f_pos 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 Cc: Frederic Weisbecker Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index c3243c9..81048b8 100644 --- 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)