Prefast warns that following the Flink pointer of the EVTCHN context list
may be unsafe due to it being NULL. It should never be NULL so this patch
adds an ASSERTion and hence squashes the warning.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
ListEntry = ListEntry->Flink) {
PXENBUS_EVTCHN_CHANNEL Channel;
+ ASSERT(ListEntry->Flink != NULL);
+
Channel = CONTAINING_RECORD(ListEntry, XENBUS_EVTCHN_CHANNEL, ListEntry);
ASSERT3U(Channel->Magic, ==, XENBUS_EVTCHN_CHANNEL_MAGIC);