diff options
author | Sven Schnelle <svens@linux.ibm.com> | 2022-12-05 10:01:38 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-09 14:34:04 +0100 |
commit | 31bc23241b54b23fb880db6f5e16a443ab44e5d0 (patch) | |
tree | 5532e3c1eea6947f60509b4ad5f53e4fef3645d0 | |
parent | 420105f4506be36c5b1fcb1f0b5e8fe03f962238 (diff) |
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>
-rw-r--r-- | drivers/s390/char/raw3270.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 0724a1ab117a..09d7570d3b7d 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c @@ -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); |