patch-2.4.9 linux/drivers/sound/vwsnd.c

Next file: linux/drivers/sound/wavfront.c
Previous file: linux/drivers/sound/via82cxxx_audio.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/drivers/sound/vwsnd.c linux/drivers/sound/vwsnd.c
@@ -2250,12 +2250,6 @@
 	vwsnd_audio_write_intr(devc, status);
 }
 
-static loff_t vwsnd_audio_llseek(struct file *file, loff_t offset, int whence)
-{
-	DBGEV("(file=0x%p, offset=%Ld, whence=%d)\n", file, offset, whence);
-	return -ESPIPE;
-}
-
 static ssize_t vwsnd_audio_do_read(struct file *file,
 				   char *buffer,
 				   size_t count,
@@ -3037,7 +3031,7 @@
 
 static struct file_operations vwsnd_audio_fops = {
 	owner:		THIS_MODULE,
-	llseek:		vwsnd_audio_llseek,
+	llseek:		no_llseek,
 	read:		vwsnd_audio_read,
 	write:		vwsnd_audio_write,
 	poll:		vwsnd_audio_poll,
@@ -3080,13 +3074,6 @@
 	return 0;
 }
 
-/* seek is illegal on mixer. */
-
-static loff_t vwsnd_mixer_llseek(struct file *file, loff_t offset, int whence)
-{
-	return -ESPIPE;
-}
-
 /* mixer_read_ioctl handles all read ioctls on the mixer device. */
 
 static int mixer_read_ioctl(vwsnd_dev_t *devc, unsigned int nr, caddr_t arg)
@@ -3234,7 +3221,7 @@
 
 static struct file_operations vwsnd_mixer_fops = {
 	owner:		THIS_MODULE,
-	llseek:		vwsnd_mixer_llseek,
+	llseek:		no_llseek,
 	ioctl:		vwsnd_mixer_ioctl,
 	open:		vwsnd_mixer_open,
 	release:	vwsnd_mixer_release,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)