From: Bart Van Assche Date: Thu, 17 Aug 2017 20:13:10 +0000 (-0700) Subject: skd: Make the skd_isr() code more brief X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1cd3c1aba3376b0283ddf19b253f510055d551fe;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git skd: Make the skd_isr() code more brief This patch does not change any functionality. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Johannes Thumshirn Signed-off-by: Jens Axboe --- diff --git a/drivers/block/skd_main.c b/drivers/block/skd_main.c index e2d205b58fe2..7d5048d95037 100644 --- a/drivers/block/skd_main.c +++ b/drivers/block/skd_main.c @@ -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 (;; ) {