Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102723926
D36777.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36777.diff
View Options
diff --git a/sys/dev/msk/if_msk.c b/sys/dev/msk/if_msk.c
--- a/sys/dev/msk/if_msk.c
+++ b/sys/dev/msk/if_msk.c
@@ -4297,11 +4297,11 @@
* lower 16 bits should be the last operation.
*/
#define MSK_READ_MIB32(x, y) \
- (((uint32_t)GMAC_READ_2(sc, x, (y) + 4)) << 16) + \
- (uint32_t)GMAC_READ_2(sc, x, y)
+ ((((uint32_t)GMAC_READ_2(sc, x, (y) + 4)) << 16) + \
+ (uint32_t)GMAC_READ_2(sc, x, y))
#define MSK_READ_MIB64(x, y) \
- (((uint64_t)MSK_READ_MIB32(x, (y) + 8)) << 32) + \
- (uint64_t)MSK_READ_MIB32(x, y)
+ ((((uint64_t)MSK_READ_MIB32(x, (y) + 8)) << 32) + \
+ (uint64_t)MSK_READ_MIB32(x, y))
static void
msk_stats_clear(struct msk_if_softc *sc_if)
@@ -4318,7 +4318,7 @@
GMAC_WRITE_2(sc, sc_if->msk_port, GM_PHY_ADDR, gmac | GM_PAR_MIB_CLR);
/* Read all MIB Counters with Clear Mode set. */
for (i = GM_RXF_UC_OK; i <= GM_TXE_FIFO_UR; i += sizeof(uint32_t))
- MSK_READ_MIB32(sc_if->msk_port, i);
+ (void)MSK_READ_MIB32(sc_if->msk_port, i);
/* Clear MIB Clear Counter Mode. */
gmac &= ~GM_PAR_MIB_CLR;
GMAC_WRITE_2(sc, sc_if->msk_port, GM_PHY_ADDR, gmac);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 9:27 AM (17 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14674064
Default Alt Text
D36777.diff (1 KB)
Attached To
Mode
D36777: msk: Use a void cast to mark values of dummy reads as unused.
Attached
Detach File
Event Timeline
Log In to Comment