The branch main has been updated by scottl:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=66b86c8a7604c4112bc6af12eacd8b7e438b5c0f

commit 66b86c8a7604c4112bc6af12eacd8b7e438b5c0f
Author:     Scott Long <[email protected]>
AuthorDate: 2022-02-26 19:21:11 +0000
Commit:     Scott Long <[email protected]>
CommitDate: 2022-02-26 19:21:11 +0000

    Fix "set but not used" in the mrsas driver.  Remove dead code.
---
 sys/dev/mrsas/mrsas_fp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/dev/mrsas/mrsas_fp.c b/sys/dev/mrsas/mrsas_fp.c
index cddf1a2bfc55..6086cfb9a1a9 100644
--- a/sys/dev/mrsas/mrsas_fp.c
+++ b/sys/dev/mrsas/mrsas_fp.c
@@ -1753,7 +1753,7 @@ MR_GetSpanBlock(u_int32_t ld, u_int64_t row, u_int64_t 
*span_blk,
        MR_QUAD_ELEMENT *quad;
        MR_LD_RAID *raid = MR_LdRaidGet(ld, map);
        u_int32_t span, j;
-       u_int64_t blk, debugBlk;
+       u_int64_t blk;
 
        for (span = 0; span < raid->spanDepth; span++, pSpanBlock++) {
                for (j = 0; j < pSpanBlock->block_span_info.noElements; j++) {
@@ -1766,7 +1766,6 @@ MR_GetSpanBlock(u_int32_t ld, u_int64_t row, u_int64_t 
*span_blk,
                            (mega_mod64(row - quad->logStart, quad->diff)) == 
0) {
                                if (span_blk != NULL) {
                                        blk = mega_div64_32((row - 
quad->logStart), quad->diff);
-                                       debugBlk = blk;
                                        blk = (blk + quad->offsetInSpan) << 
raid->stripeShift;
                                        *span_blk = blk;
                                }

Reply via email to