mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
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 commits0af5a0cd27and6f7b1310b6. PR: 285681 Tested by: whu MFC after: 2 weeks (cherry picked from commit 54a3920dc9b3b5a47cdaaa3132b4fcf1c448a737)
This commit is contained in:
parent
07c5a2486c
commit
e6a3962d7d
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue