]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/con3270: Use NULL instead of 0 for pointers
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 7 Nov 2024 16:18:44 +0000 (17:18 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 12 Nov 2024 13:01:27 +0000 (14:01 +0100)
Get rid of sparse warnings:
CHECK   drivers/s390/char/con3270.c
  drivers/s390/char/con3270.c:531:15: warning: Using plain integer as NULL pointer
  drivers/s390/char/con3270.c:749:15: warning: Using plain integer as NULL pointer

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/char/con3270.c

index 053102d0fcd2eca0ba776b6a356e3f9c556e9930..ae1b9aa3a2b512f25a2f40354a86b8f7b3f5717c 100644 (file)
@@ -528,7 +528,7 @@ static void tty3270_update(struct timer_list *t)
        u8 cmd = TC_WRITE;
        int rc, len;
 
-       wrq = xchg(&tp->write, 0);
+       wrq = xchg(&tp->write, NULL);
        if (!wrq) {
                tty3270_set_timer(tp, 1);
                return;
@@ -746,7 +746,7 @@ static void tty3270_issue_read(struct tty3270 *tp, int lock)
        struct raw3270_request *rrq;
        int rc;
 
-       rrq = xchg(&tp->read, 0);
+       rrq = xchg(&tp->read, NULL);
        if (!rrq)
                /* Read already scheduled. */
                return;