Date: Wed, 10 Aug 2016 17:25:11 GMT From: iateaca@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r307412 - soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve Message-ID: <201608101725.u7AHPBaZ009223@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: iateaca Date: Wed Aug 10 17:25:10 2016 New Revision: 307412 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=307412 Log: it is not necessary to check for error on notify codec M pci_hda.c Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Modified: soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c ============================================================================== --- soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Wed Aug 10 16:31:15 2016 (r307411) +++ soc2016/iateaca/bhyve-hda-head/usr.sbin/bhyve/pci_hda.c Wed Aug 10 17:25:10 2016 (r307412) @@ -653,7 +653,6 @@ uint32_t sdctl = 0; uint8_t strm = 0; uint8_t dir = 0; - int err; int i; assert(!st->run); @@ -715,8 +714,7 @@ st->run = 1; - err = hda_notify_codecs(sc, 1, strm, dir); - assert(!err); + hda_notify_codecs(sc, 1, strm, dir); return 0; } @@ -727,14 +725,12 @@ struct hda_stream_desc *st = &sc->streams[stream_ind]; uint8_t strm = st->stream; uint8_t dir = st->dir; - int err; DPRINTF("stream: 0x%x, strm: 0x%x, dir: 0x%x\n", stream_ind, strm, dir); st->run = 0; - err = hda_notify_codecs(sc, 0, strm, dir); - assert(!err); + hda_notify_codecs(sc, 0, strm, dir); return 0; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608101725.u7AHPBaZ009223>