• David Howells's avatar
    afs: Fix a Sparse warning in xdr_decode_AFSFetchStatus() · c875c76a
    David Howells authored
    Sparse doesn't appear able to handle the conditionally-taken locks in
    xdr_decode_AFSFetchStatus(), even though the lock and unlock are both
    contingent on the same unvarying function argument.
    
    Deal with this by interpolating a wrapper function that takes the lock if
    needed and calls xdr_decode_AFSFetchStatus() on two separate branches, one
    with the lock held and one without.
    
    This allows Sparse to work out the locking.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    c875c76a
fsclient.c 55.5 KB