hyperv/storvsc: Avoid conditional asserts in storvsc_xferbuf_prepare()

whu@ cannot reproduce the assertion failure which led to these ifdefs
being added in the first place, and since they appear wrong, i.e., the
assertions ought to apply to all platforms, let's remove them.

This reverts commits 0af5a0cd27 and
6f7b1310b6.

PR:		285681
Tested by:	whu
MFC after:	2 weeks

(cherry picked from commit 54a3920dc9b3b5a47cdaaa3132b4fcf1c448a737)
This commit is contained in:
Mark Johnston 2025-03-31 06:45:55 -04:00
parent 07c5a2486c
commit e6a3962d7d

View file

@ -1833,7 +1833,6 @@ storvsc_xferbuf_prepare(void *arg, bus_dma_segment_t *segs, int nsegs, int error
for (i = 0; i < nsegs; i++) {
#ifdef INVARIANTS
#if !defined(__aarch64__)
if (nsegs > 1) {
if (i == 0) {
KASSERT((segs[i].ds_addr & PAGE_MASK) +
@ -1853,7 +1852,6 @@ storvsc_xferbuf_prepare(void *arg, bus_dma_segment_t *segs, int nsegs, int error
segs[i].ds_len));
}
}
#endif
#endif
prplist->gpa_page[i] = atop(segs[i].ds_addr);
}