diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 11:57:23 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-26 21:10:20 +0200 |
commit | 735e849f725ba2c4587e7551f9985d3cc3bb5c0e (patch) | |
tree | c4d65638c9e0c42455816a70e447024058053c5f /drivers/s390/net/claw.c | |
parent | 82a7b9557751febc7303ec8df8c69cb9652cbe65 (diff) | |
download | op-kernel-dev-735e849f725ba2c4587e7551f9985d3cc3bb5c0e.zip op-kernel-dev-735e849f725ba2c4587e7551f9985d3cc3bb5c0e.tar.gz |
s390/net: Cocci spatch "ptr_ret.spatch"
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/net/claw.c')
-rw-r--r-- | drivers/s390/net/claw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c index 83bc9c5..fd7b3bd 100644 --- a/drivers/s390/net/claw.c +++ b/drivers/s390/net/claw.c @@ -3348,7 +3348,7 @@ static int __init claw_init(void) } CLAW_DBF_TEXT(2, setup, "init_mod"); claw_root_dev = root_device_register("claw"); - ret = IS_ERR(claw_root_dev) ? PTR_ERR(claw_root_dev) : 0; + ret = PTR_RET(claw_root_dev); if (ret) goto register_err; ret = ccw_driver_register(&claw_ccw_driver); |