staging: octeon: Remove explicit NULL comparison
Remove the explicit NULL comparison and rewrite in a compact form. Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4ef2de5ae0
commit
192b6a8475
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue