Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/tape: replace PTR_RET with PTR_ERR_OR_ZERO

PTR_RET is deprecated, use PTR_ERR_OR_ZERO instead.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Gustavo A. R. Silva and committed by
Martin Schwidefsky
cd0ed39d 9fa6a659

+1 -1
+1 -1
drivers/s390/char/tape_class.c
··· 77 77 tcd->class_device = device_create(tape_class, device, 78 78 tcd->char_device->dev, NULL, 79 79 "%s", tcd->device_name); 80 - rc = PTR_RET(tcd->class_device); 80 + rc = PTR_ERR_OR_ZERO(tcd->class_device); 81 81 if (rc) 82 82 goto fail_with_cdev; 83 83 rc = sysfs_create_link(