diff options
-rw-r--r-- | linux/dev/glue/block.c | 8 | ||||
-rw-r--r-- | linux/dev/glue/net.c | 1 | ||||
-rw-r--r-- | vm/memory_object_proxy.c | 1 |
3 files changed, 1 insertions, 9 deletions
diff --git a/linux/dev/glue/block.c b/linux/dev/glue/block.c index b920fb6..cec9687 100644 --- a/linux/dev/glue/block.c +++ b/linux/dev/glue/block.c @@ -230,8 +230,6 @@ int register_blkdev (unsigned major, const char *name, struct file_operations *fops) { - int err = 0; - if (major == 0) { for (major = MAX_BLKDEV - 1; major > 0; major--) @@ -260,8 +258,6 @@ out: int unregister_blkdev (unsigned major, const char *name) { - int err; - if (major >= MAX_BLKDEV) return -LINUX_EINVAL; if (! blkdevs[major].fops || strcmp (blkdevs[major].name, name)) @@ -324,7 +320,6 @@ alloc_buffer (int size) static void free_buffer (void *p, int size) { - int i; struct temp_data *d; vm_page_t m; @@ -388,7 +383,6 @@ __brelse (struct buffer_head *bh) struct buffer_head * bread (kdev_t dev, int block, int size) { - int err; struct buffer_head *bh; bh = getblk (dev, block, size); @@ -922,7 +916,7 @@ static kern_return_t init_partition (struct name_map *np, kdev_t *dev, struct device_struct *ds, int slice, int *part) { - int err, i, j; + int i, j; struct disklabel *lp; struct gendisk *gd = ds->gd; struct partition *p; diff --git a/linux/dev/glue/net.c b/linux/dev/glue/net.c index 095428d..acb31ae 100644 --- a/linux/dev/glue/net.c +++ b/linux/dev/glue/net.c @@ -425,7 +425,6 @@ device_write (void *d, ipc_port_t reply_port, { unsigned char *p; int i, amt, skblen, s; - io_return_t err = 0; vm_map_copy_t copy = (vm_map_copy_t) data; struct net_data *nd = d; struct linux_device *dev = nd->dev; diff --git a/vm/memory_object_proxy.c b/vm/memory_object_proxy.c index cfacca9..7204256 100644 --- a/vm/memory_object_proxy.c +++ b/vm/memory_object_proxy.c @@ -126,7 +126,6 @@ memory_object_create_proxy (ipc_space_t space, vm_prot_t max_protection, vm_offset_t *len, natural_t len_count, ipc_port_t *port) { - kern_return_t kr; memory_object_proxy_t proxy; ipc_port_t notify; |