diff options
author | Guillem Jover <guillem@hadrons.org> | 2011-08-25 15:22:34 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-08-27 00:50:26 +0200 |
commit | c706c9321eaf9c4dd6c462428708759dbf5a1cc4 (patch) | |
tree | 5e6cf212bb2bdbe84df190192e64fc46446fb9ac | |
parent | 545f8bceb537130d8f0b9e66cd7e6aa81a11a1bf (diff) |
Remove unused variables
* vm/memory_object_proxy.c (memory_object_create_proxy): Remove unused
`kr' variable.
* linux/dev/glue/block.c (free_buffer): Remove unused `i' variable.
(register_blkdev): Remove unused `err' variable.
(unregister_blkdev): Likewise.
(bread): Likewise.
(init_partition): Likewise.
* linux/dev/glue/net.c (device_write): Likewise.
-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; |