mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-02 15:21:03 +00:00
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
@ -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…
Reference in New Issue
Block a user