Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115907776
D35831.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
687 B
Referenced Files
None
Subscribers
None
D35831.diff
View Options
diff --git a/sys/dev/alc/if_alc.c b/sys/dev/alc/if_alc.c
--- a/sys/dev/alc/if_alc.c
+++ b/sys/dev/alc/if_alc.c
@@ -3438,7 +3438,6 @@
struct ifnet *ifp;
struct alc_txdesc *txd;
uint32_t cons, prod;
- int prog;
ALC_LOCK_ASSERT(sc);
@@ -3467,11 +3466,9 @@
* Go through our Tx list and free mbufs for those
* frames which have been transmitted.
*/
- for (prog = 0; cons != prod; prog++,
- ALC_DESC_INC(cons, ALC_TX_RING_CNT)) {
+ for (; cons != prod; ALC_DESC_INC(cons, ALC_TX_RING_CNT)) {
if (sc->alc_cdata.alc_tx_cnt <= 0)
break;
- prog++;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
sc->alc_cdata.alc_tx_cnt--;
txd = &sc->alc_cdata.alc_txdesc[cons];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 6:54 AM (17 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17875433
Default Alt Text
D35831.diff (687 B)
Attached To
Mode
D35831: Ugly workaround for clang 15 warning in if_alc.c
Attached
Detach File
Event Timeline
Log In to Comment