Add a jump target so that a bit of exception handling can be better reused
at the end of this function.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
                return -EIO;
 
        mutex_lock(&kvm->lock);
+       if (!kvm->arch.pimap)
+               goto unlock;
 
-       if (kvm->arch.pimap == NULL) {
-               mutex_unlock(&kvm->lock);
-               return 0;
-       }
        pimap = kvm->arch.pimap;
 
        for (i = 0; i < pimap->n_mapped; i++) {
         * We don't free this structure even when the count goes to
         * zero. The structure is freed when we destroy the VM.
         */
-
+ unlock:
        mutex_unlock(&kvm->lock);
        return 0;
 }