summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2015-05-05 18:35:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-08 15:25:54 +0200
commitbe91cd3740cbaa3290ffd5a4cbb197fff7cdbeb2 (patch)
tree3ab1f756070ee24c78561861e3226fe4828e4696 /drivers/staging
parent9421736356cb4035a2ee10a021b8d0e82fd954a0 (diff)
staging: unisys: Remove unused cache object counter
kmem_cache statistics are available through SLAB anyway Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/unisys/visorchipset/visorchipset_main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/unisys/visorchipset/visorchipset_main.c b/drivers/staging/unisys/visorchipset/visorchipset_main.c
index 9b6c768e57ab..e33d8866daeb 100644
--- a/drivers/staging/unisys/visorchipset/visorchipset_main.c
+++ b/drivers/staging/unisys/visorchipset/visorchipset_main.c
@@ -213,8 +213,6 @@ struct putfile_request {
int completion_status;
};
-static atomic_t visorchipset_cache_buffers_in_use = ATOMIC_INIT(0);
-
struct parahotplug_request {
struct list_head list;
int id;
@@ -2077,7 +2075,6 @@ visorchipset_cache_alloc(struct kmem_cache *pool, bool ok_to_block,
if (!p)
return NULL;
- atomic_inc(&visorchipset_cache_buffers_in_use);
return p;
}
@@ -2089,7 +2086,6 @@ visorchipset_cache_free(struct kmem_cache *pool, void *p, char *fn, int ln)
if (!p)
return;
- atomic_dec(&visorchipset_cache_buffers_in_use);
kmem_cache_free(pool, p);
}