mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
s390/con3270: Use NULL instead of 0 for pointers
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>
This commit is contained in:
parent
de786f0f83
commit
97b5cf6294
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user