HomeFreeBSD

Fix unused variable warning in xen's blkfront.c

Description

Fix unused variable warning in xen's blkfront.c

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

sys/dev/xen/blkfront/blkfront.c:602:6: error: variable 'sbp' set but not used [-Werror,-Wunused-but-set-variable]
        int sbp;
            ^

The 'sbp' variable was used in the for loop later in the xb_dump()
function, but refactoring in e4808c4b2dba got rid of it. Remove the
variable since it no longer serves any purpose.

MFC after: 3 days

Details

Provenance
dimAuthored on Jul 26 2022, 12:01 PM
Parents
rG57c46916e145: Adjust playinit() definition to avoid clang 15 warning
Branches
Unknown
Tags
Unknown