diff options
author | bde <bde@FreeBSD.org> | 2003-12-24 04:11:10 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2003-12-24 04:11:10 +0000 |
commit | ad6b2985b6dc8d17d648d92ede8a545554405592 (patch) | |
tree | c60dbb84038690da53c2b7b10196d0090fd4ea16 /sys/dev/sio/sio.c | |
parent | 09140a0699a20102771d56d03e3112af37862569 (diff) | |
download | FreeBSD-src-ad6b2985b6dc8d17d648d92ede8a545554405592.zip FreeBSD-src-ad6b2985b6dc8d17d648d92ede8a545554405592.tar.gz |
Fixed breakage of a check for boolean true by misusing NULL in rev.1.407.
This became fatal when the type of NULL was changed recently.
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r-- | sys/dev/sio/sio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 1e06b59..bd842f4 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1066,7 +1066,7 @@ sioattach(dev, xrid, rclk) com->tx_fifo_size = 1024; break; } - if (com->esp != NULL) + if (com->esp) break; #endif com->tx_fifo_size = COM_FIFOSIZE(flags); @@ -1078,7 +1078,7 @@ sioattach(dev, xrid, rclk) break; } #ifdef COM_ESP - if (com->esp != NULL) { + if (com->esp) { /* * Set 16550 compatibility mode. * We don't use the ESP_MODE_SCALE bit to increase the |