From: Muhammad Falak R Wani Date: Mon, 19 Oct 2015 19:27:38 +0000 (+0530) Subject: staging: octeon: Remove explicit NULL comparison X-Git-Tag: firefly_0821_release~176^2~802^2~275 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=192b6a8475f8312f0d1f19a010fcca322018d14f;p=firefly-linux-kernel-4.4.55.git staging: octeon: Remove explicit NULL comparison Remove the explicit NULL comparison and rewrite in a compact form. Signed-off-by: Muhammad Falak R Wani Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c index d78fd7b5c74c..f69fb5cc7cb8 100644 --- a/drivers/staging/octeon/ethernet.c +++ b/drivers/staging/octeon/ethernet.c @@ -678,7 +678,7 @@ static int cvm_oct_probe(struct platform_device *pdev) } cvm_oct_poll_queue = create_singlethread_workqueue("octeon-ethernet"); - if (cvm_oct_poll_queue == NULL) { + if (!cvm_oct_poll_queue) { pr_err("octeon-ethernet: Cannot create workqueue"); return -ENOMEM; }