Skip to content
Commit 1179d337 authored by Markus Elfring's avatar Markus Elfring Committed by Sagi Grimberg
Browse files

nvmet: Use PTR_ERR_OR_ZERO() in nvmet_init_discovery()



Simplify this function implementation by using a known function.

Generated by: scripts/coccinelle/api/ptr_ret.cocci
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
parent 97b3807e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment