From patchwork Wed Aug 3 18:13:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9261735 X-Patchwork-Delegate: christophe.varoqui@free.fr Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7479760865 for ; Wed, 3 Aug 2016 18:17:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 67B9028236 for ; Wed, 3 Aug 2016 18:17:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5B46328305; Wed, 3 Aug 2016 18:17:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CC7828236 for ; Wed, 3 Aug 2016 18:17:47 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u73IEKmZ027385; Wed, 3 Aug 2016 14:14:20 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u73IEBjU017415 for ; Wed, 3 Aug 2016 14:14:11 -0400 Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u73IEB0u016182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 3 Aug 2016 14:14:11 -0400 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5DFBF13CE4 for ; Wed, 3 Aug 2016 18:14:10 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id q128so37569981wma.1 for ; Wed, 03 Aug 2016 11:14:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q7mgGyJ4ubEaEHS1tFSU8Klcy54/EhnRHxiTj6pKFw4=; b=cWP86FktlGA8LRe0M9Q3Kkxn4fmCSvCkfolgNjWvOQIq9jArxQ8kNbEDtYmucztCVW RDqCkZGd/ZrLYjdjBt4yWlhs3QL/7FcJ6BAlPmSI4w6lGq0FzeVtXIZGzotdFZQlobHT 9i2aLVp/xsDAHskb2QEHcYUL/IRs091755ARzqwQHyHW2LQbNnCHWS+MMKy2kmcuA4p8 0Rp8z6vrRCWHkGcXmAxtpWUyIlpQZh75sd5Dyt7K6GChiw7fTdFB0zJGdCtOxVMPkSYQ IYH8ed6z7DyXXKvq0Onxhrw6Djx0YUvTXrb/KBvFDqk2jbvLTcOjKQl3asWRdDsMJiOj YU/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q7mgGyJ4ubEaEHS1tFSU8Klcy54/EhnRHxiTj6pKFw4=; b=jWBnLMqWyahLmk9aN/hBkk+rluS/oYQmT1Oi4xVOp73Pqkj7l6fOoGGGEwS2WDSBDJ 3W4O0zt/R63okjr2E3ntPpd2UDCZ/QLrMNY0ql6dB8LUrJSUCF/NRaAuz5XSARKQSHPo eUMEXTABpMkCBT5gTVMshyh4nAgp32JLfzi+jqiTk6xBGNyXQizaIx5NHMzJUz14VclP kC8Iv4kj7Q6r0A4wZ8KgpBHEm9fcJMIHcL4lukAxsob0BnBWhh5uLkIbWVKdB1wrWx7q UL13Tc8Y9jU+4DXXD3IB6eFjnQCfc7TJ6jyghoFrv6MeZxEPPjlWLwNQHXCdRX4FRLSi GJTQ== X-Gm-Message-State: AEkoousDjNYKZ+v+ciMwVhZLET33/AobkzYLywnVYSFBv/dOLzl08cm4GpLJB4mYf7jncw== X-Received: by 10.194.67.198 with SMTP id p6mr62270068wjt.138.1470248049045; Wed, 03 Aug 2016 11:14:09 -0700 (PDT) Received: from localhost ([37.29.198.125]) by smtp.gmail.com with ESMTPSA id f4sm28252518wmf.8.2016.08.03.11.14.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Aug 2016 11:14:07 -0700 (PDT) From: Xose Vazquez Perez To: Date: Wed, 3 Aug 2016 20:13:58 +0200 Message-Id: <1470248040-11789-3-git-send-email-xose.vazquez@gmail.com> In-Reply-To: <1470248040-11789-1-git-send-email-xose.vazquez@gmail.com> References: <1470248040-11789-1-git-send-email-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 03 Aug 2016 18:14:10 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 03 Aug 2016 18:14:10 +0000 (UTC) for IP:'74.125.82.66' DOMAIN:'mail-wm0-f66.google.com' HELO:'mail-wm0-f66.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.02 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.66 mail-wm0-f66.google.com 74.125.82.66 mail-wm0-f66.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH 3/5] multipath-tools: remove indent from labels X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP Found by checkpatch - WARNING: labels should not be indented Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- kpartx/devmapper.c | 4 ++-- libmultipath/devmapper.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kpartx/devmapper.c b/kpartx/devmapper.c index 382f511..474d879 100644 --- a/kpartx/devmapper.c +++ b/kpartx/devmapper.c @@ -47,7 +47,7 @@ dm_prereq (char * str, int x, int y, int z) target = (void *) target + target->next; } while (last_target != target); - out: +out: dm_task_destroy(dmt); return r; } @@ -85,7 +85,7 @@ dm_simplecmd (int task, const char *name, int no_flush, uint16_t udev_flags) { if (udev_wait_flag) dm_udev_wait(cookie); #endif - out: +out: dm_task_destroy(dmt); return r; } diff --git a/libmultipath/devmapper.c b/libmultipath/devmapper.c index 9b2c706..5eb1713 100644 --- a/libmultipath/devmapper.c +++ b/libmultipath/devmapper.c @@ -243,7 +243,7 @@ dm_simplecmd (int task, const char *name, int no_flush, int need_sync, uint16_t if (udev_wait_flag) dm_udev_wait(cookie); - out: +out: dm_task_destroy (dmt); return r; } @@ -327,11 +327,11 @@ dm_addmap (int task, const char *target, struct multipath *mpp, if (task == DM_DEVICE_CREATE) dm_udev_wait(cookie); - freeout: +freeout: if (prefixed_uuid) FREE(prefixed_uuid); - addout: +addout: dm_task_destroy (dmt); return r; @@ -891,7 +891,7 @@ dm_flush_maps (void) names = (void *) names + next; } while (next); - out: +out: dm_task_destroy (dmt); return r; }