]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Fix "set but not used" in the mrsas driver. Remove dead code.
authorScott Long <scottl@FreeBSD.org>
Sat, 26 Feb 2022 19:21:11 +0000 (12:21 -0700)
committerScott Long <scottl@FreeBSD.org>
Sat, 26 Feb 2022 19:21:11 +0000 (12:21 -0700)
sys/dev/mrsas/mrsas_fp.c

index cddf1a2bfc55307bf08d53536150d462592100b3..6086cfb9a1a9c97bf2504bacd8af6ffd1aa660d1 100644 (file)
@@ -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;
                                }