projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
420105f
)
s390/raw3270: fix nullpointer check
author
Sven Schnelle
<svens@linux.ibm.com>
Mon, 5 Dec 2022 09:01:38 +0000
(10:01 +0100)
committer
Heiko Carstens
<hca@linux.ibm.com>
Mon, 9 Jan 2023 13:34:04 +0000
(14:34 +0100)
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>
drivers/s390/char/raw3270.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/raw3270.c
b/drivers/s390/char/raw3270.c
index 0724a1ab117ac823a93e633fb99388a449f8399a..09d7570d3b7d4bbef616584ba8cc45cd3e34f7dc 100644
(file)
--- 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);