Skip to content

Commit

Permalink
lcs: replace PTR_RET with PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Duan Jiong <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Signed-off-by: Frank Blaschka <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Duan Jiong authored and davem330 committed Apr 28, 2014
1 parent 0f8ee7f commit 6274edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/net/lcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,7 @@ __init lcs_init_module(void)
if (rc)
goto out_err;
lcs_root_dev = root_device_register("lcs");
rc = PTR_RET(lcs_root_dev);
rc = PTR_ERR_OR_ZERO(lcs_root_dev);
if (rc)
goto register_err;
rc = ccw_driver_register(&lcs_ccw_driver);
Expand Down

0 comments on commit 6274edc

Please sign in to comment.