staging: qlge: qlge_main.c: remove an unneeded variable
authorPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Thu, 12 Mar 2020 19:06:21 +0000 (00:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 13:00:45 +0000 (14:00 +0100)
Remove unneeded temporary local variable, cleanup suggested by coccinelle.

Signed-off-by: Payal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-2-payalskshirsagar1234@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c

index f997993..c92820f 100644 (file)
@@ -3901,14 +3901,11 @@ static void ql_release_adapter_resources(struct ql_adapter *qdev)
 
 static int ql_get_adapter_resources(struct ql_adapter *qdev)
 {
-       int status = 0;
-
        if (ql_alloc_mem_resources(qdev)) {
                netif_err(qdev, ifup, qdev->ndev, "Unable to  allocate memory.\n");
                return -ENOMEM;
        }
-       status = ql_request_irq(qdev);
-       return status;
+       return ql_request_irq(qdev);
 }
 
 static int qlge_close(struct net_device *ndev)