]> git.baikalelectronics.ru Git - kernel.git/commitdiff
s390/zcrypt: remove zcrypt_device_count
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 16 Apr 2021 09:58:41 +0000 (11:58 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:06:59 +0000 (17:06 +0200)
It's evidently unused.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_api.c
drivers/s390/crypto/zcrypt_api.h
drivers/s390/crypto/zcrypt_queue.c

index 52eaf51c9bb64ee1f92f75b5459f469d0cd2fef3..5d726cd67314f265fe625759e6bb7b7dfc6c9221 100644 (file)
@@ -59,7 +59,6 @@ MODULE_PARM_DESC(hwrng_seed, "Turn on/off hwrng auto seed, default is 1 (on).");
 
 DEFINE_SPINLOCK(zcrypt_list_lock);
 LIST_HEAD(zcrypt_card_list);
-int zcrypt_device_count;
 
 static atomic_t zcrypt_open_count = ATOMIC_INIT(0);
 static atomic_t zcrypt_rescan_count = ATOMIC_INIT(0);
index 16219efb2f61912b7502207b58e0d8eea7ee2785..5103c4797572bb28f73f26e78672563acd8c034d 100644 (file)
@@ -124,7 +124,6 @@ struct zcrypt_queue {
 extern atomic_t zcrypt_rescan_req;
 
 extern spinlock_t zcrypt_list_lock;
-extern int zcrypt_device_count;
 extern struct list_head zcrypt_card_list;
 
 #define for_each_zcrypt_card(_zc) \
index c3ffbd26b73ff6667dc9b27a00df03db9f48b4d1..a89ccdaa512617f74b97805caebb6c7b1c686333 100644 (file)
@@ -173,7 +173,6 @@ int zcrypt_queue_register(struct zcrypt_queue *zq)
                   AP_QID_CARD(zq->queue->qid), AP_QID_QUEUE(zq->queue->qid));
 
        list_add_tail(&zq->list, &zc->zqueues);
-       zcrypt_device_count++;
        spin_unlock(&zcrypt_list_lock);
 
        rc = sysfs_create_group(&zq->queue->ap_dev.device.kobj,
@@ -216,7 +215,6 @@ void zcrypt_queue_unregister(struct zcrypt_queue *zq)
        zc = zq->zcard;
        spin_lock(&zcrypt_list_lock);
        list_del_init(&zq->list);
-       zcrypt_device_count--;
        spin_unlock(&zcrypt_list_lock);
        if (zq->ops->rng)
                zcrypt_rng_device_remove();