git: 97c29a1d0897 - stable/13 - cdce: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 13:29:50 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=97c29a1d0897c2ea114990e8d34cef5b8dc214f0 commit 97c29a1d0897c2ea114990e8d34cef5b8dc214f0 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-02-28 16:08:55 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-03-07 13:18:16 +0000 cdce: Fix a -Wunused-but-set-variable warning (cherry picked from commit ceb246c7b2834b40812ccd03a61d8c1cab6b5ca2) --- 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); }