don't set a flag that is already set

This commit is contained in:
Cameron Grant 2001-07-01 18:57:16 +00:00
parent 4712b1eba1
commit c76f01164f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79045

View File

@ -985,7 +985,9 @@ dsp_mmap(dev_t i_dev, vm_offset_t offset, int nprot)
return -1;
}
c->flags |= CHN_F_MAPPED;
if (!(c->flags & CHN_F_MAPPED))
c->flags |= CHN_F_MAPPED;
ret = atop(vtophys(((char *)sndbuf_getbuf(c->bufsoft)) + offset));
relchns(i_dev, rdch, wrch, SD_F_PRIO_RD | SD_F_PRIO_WR);