Date: Mon, 28 Feb 2022 16:11:04 GMT From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ceb246c7b283 - main - cdce: Fix a -Wunused-but-set-variable warning Message-ID: <202202281611.21SGB43U035666@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ceb246c7b2834b40812ccd03a61d8c1cab6b5ca2 commit ceb246c7b2834b40812ccd03a61d8c1cab6b5ca2 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-02-28 16:08:55 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-02-28 16:08:55 +0000 cdce: Fix a -Wunused-but-set-variable warning MFC after: 1 week --- sys/dev/usb/net/if_cdce.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/usb/net/if_cdce.c b/sys/dev/usb/net/if_cdce.c index ebc68e1f71cc..f3c73567b7ce 100644 --- a/sys/dev/usb/net/if_cdce.c +++ b/sys/dev/usb/net/if_cdce.c @@ -974,9 +974,8 @@ static uint32_t cdce_m_crc32(struct mbuf *m, uint32_t src_offset, uint32_t src_len) { uint32_t crc = 0xFFFFFFFF; - int error; - error = m_apply(m, src_offset, src_len, cdce_m_crc32_cb, &crc); + (void)m_apply(m, src_offset, src_len, cdce_m_crc32_cb, &crc); return (crc ^ 0xFFFFFFFF); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202281611.21SGB43U035666>