HomeFreeBSD

Fix unused variable warning in rockchip's rk_spi.c

Description

Fix unused variable warning in rockchip's rk_spi.c

With clang 15, the following -Werror warning is produced:

sys/arm64/rockchip/rk_spi.c:229:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
        int cnt = 0;
            ^

The 'cnt' variable was in rk_spi.c when it was first added, but it
appears to have been a debugging aid that has never been used, so remove
it.

MFC after: 3 days

Details

Provenance
dimAuthored on Aug 14 2022, 6:36 PM
Parents
rG762dcf106412: goldfish_rtc: Fix handling a local time RTC
Branches
Unknown
Tags
Unknown