diff options
author | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2017-03-14 02:06:03 +0000 |
commit | f3584df197214b997bc9ae927780e03c37c9e36c (patch) | |
tree | aae668303806e238ca59fc767e74a67964266c3f /sys/boot/efi | |
parent | 1c6f535240ae8fa78eae79343be21fe7ff7a6807 (diff) | |
download | FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.zip FreeBSD-src-f3584df197214b997bc9ae927780e03c37c9e36c.tar.gz |
MFC r313982, r314068:
sys: Replace zero with NULL for pointers.
Found with: devel/coccinelle
Diffstat (limited to 'sys/boot/efi')
-rw-r--r-- | sys/boot/efi/libefi/efinet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/efi/libefi/efinet.c b/sys/boot/efi/libefi/efinet.c index 56f9510..d845826 100644 --- a/sys/boot/efi/libefi/efinet.c +++ b/sys/boot/efi/libefi/efinet.c @@ -131,13 +131,13 @@ efinet_put(struct iodesc *desc, void *pkt, size_t len) /* Wait for the buffer to be transmitted */ do { - buf = 0; /* XXX Is this needed? */ + buf = NULL; /* XXX Is this needed? */ status = net->GetStatus(net, 0, &buf); /* * XXX EFI1.1 and the E1000 card returns a different * address than we gave. Sigh. */ - } while (status == EFI_SUCCESS && buf == 0); + } while (status == EFI_SUCCESS && buf == NULL); /* XXX How do we deal with status != EFI_SUCCESS now? */ return ((status == EFI_SUCCESS) ? len : -1); |