Commit cedce08c authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman

staging: qlge: qlge_main.c: remove an unneeded variable

Remove unneeded temporary local variable, cleanup suggested by coccinelle.
Signed-off-by: default avatarPayal Kshirsagar <payalskshirsagar1234@gmail.com>
Reviewed-by: default avatarStefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200312190624.24167-2-payalskshirsagar1234@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 251c833c
...@@ -3901,14 +3901,11 @@ static void ql_release_adapter_resources(struct ql_adapter *qdev) ...@@ -3901,14 +3901,11 @@ static void ql_release_adapter_resources(struct ql_adapter *qdev)
static int ql_get_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)) { if (ql_alloc_mem_resources(qdev)) {
netif_err(qdev, ifup, qdev->ndev, "Unable to allocate memory.\n"); netif_err(qdev, ifup, qdev->ndev, "Unable to allocate memory.\n");
return -ENOMEM; return -ENOMEM;
} }
status = ql_request_irq(qdev); return ql_request_irq(qdev);
return status;
} }
static int qlge_close(struct net_device *ndev) static int qlge_close(struct net_device *ndev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment