s390/raw3270: fix nullpointer check

Fix the following checkpatch warning:

CHECK: Comparison to NULL could be written "!rp"
+       if (rp == NULL)

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
Sven Schnelle 2022-12-05 10:01:38 +01:00 committed by Heiko Carstens
parent 420105f450
commit 31bc23241b

View File

@ -1232,7 +1232,7 @@ static void raw3270_remove(struct ccw_device *cdev)
* devices even if they haven't been varied online.
* Thus, rp may validly be NULL here.
*/
if (rp == NULL)
if (!rp)
return;
sysfs_remove_group(&cdev->dev.kobj, &raw3270_attr_group);