]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
skd: Make the skd_isr() code more brief
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:10 +0000 (13:13 -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 e2d205b58fe20d13834fb347c8d7998034db91b4..7d5048d95037c9c13ab367cefad574cd5bf7d4ac 100644 (file)
@@ -2830,14 +2830,13 @@ static void skd_isr_msg_from_dev(struct skd_device *skdev);
 static irqreturn_t
 skd_isr(int irq, void *ptr)
 {
-       struct skd_device *skdev;
+       struct skd_device *skdev = ptr;
        u32 intstat;
        u32 ack;
        int rc = 0;
        int deferred = 0;
        int flush_enqueued = 0;
 
-       skdev = (struct skd_device *)ptr;
        spin_lock(&skdev->lock);
 
        for (;; ) {