git: ceb246c7b283 - main - cdce: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 16:11:04 UTC
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);
}