summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorhsu <hsu@FreeBSD.org>2000-08-03 17:31:56 +0000
committerhsu <hsu@FreeBSD.org>2000-08-03 17:31:56 +0000
commitfac663d11354c0cfe9f62843a23e5ccb37ea15bb (patch)
tree740ddcf2f8bb8b53565b643c5113caecf05b4f64 /sys
parent5f2dd0da0dd463999efacbd5a5dd318bd01d52a4 (diff)
downloadFreeBSD-src-fac663d11354c0cfe9f62843a23e5ccb37ea15bb.zip
FreeBSD-src-fac663d11354c0cfe9f62843a23e5ccb37ea15bb.tar.gz
Make check for empty list in STAILQ_LAST() more readable.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/queue.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/queue.h b/sys/sys/queue.h
index 6b5d320..ece552b 100644
--- a/sys/sys/queue.h
+++ b/sys/sys/queue.h
@@ -224,7 +224,7 @@ struct { \
} while (0)
#define STAILQ_LAST(head, type, field) \
- (((head)->stqh_last == &(head)->stqh_first) ? \
+ (STAILQ_EMPTY(head) ? \
NULL : \
strbase(type, (head)->stqh_last, field))
OpenPOWER on IntegriCloud