patch-2.4.9 linux/drivers/net/wan/cosa.c
Next file: linux/drivers/net/wan/cycx_main.c
Previous file: linux/drivers/net/wan/comx.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sun Aug 12 10:38:48 2001
- Orig file:
v2.4.8/linux/drivers/net/wan/cosa.c
- Orig date:
Tue Jul 3 17:08:20 2001
diff -u --recursive --new-file v2.4.8/linux/drivers/net/wan/cosa.c linux/drivers/net/wan/cosa.c
@@ -303,7 +303,6 @@
static char *chrdev_setup_rx(struct channel_data *channel, int size);
static int chrdev_rx_done(struct channel_data *channel);
static int chrdev_tx_done(struct channel_data *channel, int size);
-static loff_t cosa_lseek(struct file *file, loff_t offset, int origin);
static ssize_t cosa_read(struct file *file,
char *buf, size_t count, loff_t *ppos);
static ssize_t cosa_write(struct file *file,
@@ -319,7 +318,7 @@
static struct file_operations cosa_fops = {
owner: THIS_MODULE,
- llseek: cosa_lseek,
+ llseek: no_llseek,
read: cosa_read,
write: cosa_write,
poll: cosa_poll,
@@ -780,11 +779,6 @@
{
init_MUTEX(&chan->rsem);
init_MUTEX(&chan->wsem);
-}
-
-static loff_t cosa_lseek(struct file * file, loff_t offset, int origin)
-{
- return -ESPIPE;
}
static ssize_t cosa_read(struct file *file,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)