skd: Remove a set-but-not-used variable from struct skd_device
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:12:56 +0000 (13:12 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
This patch does not change any functionality.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c

index ef7c0384e9a8065d3ecb956ecfd1241aa08c1626..53c84c846a5efd05d98c838ee4c21cfa74b0ac7d 100644 (file)
@@ -271,7 +271,6 @@ struct skd_device {
        int gendisk_on;
        int sync_done;
 
-       atomic_t device_count;
        u32 devno;
        u32 major;
        char name[32];
@@ -4313,8 +4312,6 @@ static struct skd_device *skd_construct(struct pci_dev *pdev)
        skdev->sgs_per_request = skd_sgs_per_request;
        skdev->dbg_level = skd_dbg_level;
 
-       atomic_set(&skdev->device_count, 0);
-
        spin_lock_init(&skdev->lock);
 
        INIT_WORK(&skdev->completion_worker, skd_completion_worker);