From patchwork Wed Sep 28 15:40:14 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9355843 X-Patchwork-Delegate: snitzer@redhat.com 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 DC0736086A for ; Thu, 29 Sep 2016 07:58:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB7772988E for ; Thu, 29 Sep 2016 07:58:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C00BF2989A; Thu, 29 Sep 2016 07:58:22 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C85129894 for ; Thu, 29 Sep 2016 07:58:22 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u8T7uC0R003105; Thu, 29 Sep 2016 03:56:12 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u8SFeKc0023832 for ; Wed, 28 Sep 2016 11:40:20 -0400 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u8SFeKjO023616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 28 Sep 2016 11:40:20 -0400 Received: from mout.web.de (mout.web.de [217.72.192.78]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 888D44C466; Wed, 28 Sep 2016 15:40:18 +0000 (UTC) Received: from [192.168.1.2] ([78.48.47.99]) by smtp.web.de (mrweb101) with ESMTPSA (Nemesis) id 0Lu52Q-1apz573a5u-011Qgu; Wed, 28 Sep 2016 17:40:15 +0200 To: dm-devel@redhat.com, linux-raid@vger.kernel.org, Alasdair Kergon , Mike Snitzer , Shaohua Li References: <566ABCD9.1060404@users.sourceforge.net> <7c232017-e291-fd2d-5516-26e5150d90df@users.sourceforge.net> From: SF Markus Elfring Message-ID: Date: Wed, 28 Sep 2016 17:40:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <7c232017-e291-fd2d-5516-26e5150d90df@users.sourceforge.net> X-Provags-ID: V03:K0:FCPgz/3SAxO+d9rXgYYktN7EddrzXfkapAXIjPHexj6GQh4YVcJ W1/ng7tXI5jJyoSBhHvg3BFWT7E6TkNK7gAOlD8asPJJ1NSyFgU/Pp5hf/MO4RzmtQBL5i3 WWTRI9qRMJOTLdgc5c5/oKGqI1dtMIQdmb0ond5rPXjVE9rZlbBVArKx7IxE9j2vHwJ8jJk Nhe6X3OJrIoLbzgpsEhwQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:CiR3Chgs7Bk=:VVBDX34pKM8P9XxXAps7RN 3olvlEeSJRbJzjjhbU7d9cY1+udWBGbMWXX/YkZeh/oislW/xEpXDxrlpf6Y3FXllOHJNc2Vo iqzmFuswROEz9IRqJC3cTYldfqAqHlLixd/SyNEJf9AoKZlHjL3I4fu83u95IHjuVZPRB8eQl KWc5nuLMjuvpYXhP2RZlhyjV2eInADW8uoyCUEEV0jCUdonQFW+QoBzAjDUBvPZs86HV86Cw/ qxkNJqYWyCVgW0iULnttrc4ronFQI3bXWlcKqL/+mSZ0R8Lg8tXCeIiuun+5ly9bRWwCFJFZn T+fhggStTVLGtJpCuq/kOpVThjNkEXPS9qcO3GwSCzfVlJSVzFtN9cG0fTGqqeRYnzrWL0oDm OeuTLmSaN9wYHAXjbDULS9cXX90vbNVLMXB0MXObLUItAbVRRW1rHuwX1SGGAVN1XfXsIMTtB hBQuXJXPCoyp6YCNTLhSZM7mzk4BQ4+i0Q9TqzujQtR0IQrMBjU5QmIEjBX+G16G1JaYlsfCa oU0LXh6DH5LwB6IKY2vOJVgkUCYux/Ivj1JjI0aPLbMFrR7S5otQBqO3Hy9uB1WzYTMOleVaP dyWBRpfFQDvJT0+DD83uq4biOQMqJ4+5esQILEMdASo6+o8AxHRRCWgi+s5y5CrgEEajmye8R Sr+vCiB0spK5VsZETXEBPEwTpdJLNN7ucy5ULfy1LZfh1/yYXg0Ap+ZqJ83VArDl4gzC/NQr9 JCecT/RO7/BOE+wtgXF/ywILU00QdLkaXCoPaJpPb4hpMYptGBSodrXeJdg92xvzHG0buN21x wjrShfi X-Greylist: Sender IP whitelisted by DNSRBL, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 28 Sep 2016 15:40:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 28 Sep 2016 15:40:19 +0000 (UTC) for IP:'217.72.192.78' DOMAIN:'mout.web.de' HELO:'mout.web.de' FROM:'elfring@users.sourceforge.net' RCPT:'' X-RedHat-Spam-Score: 0.079 (BAYES_50, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 217.72.192.78 mout.web.de 217.72.192.78 mout.web.de X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Thu, 29 Sep 2016 03:54:16 -0400 Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML Subject: [dm-devel] [PATCH 03/10] md/dm-crypt: Rename a jump label in crypt_message() 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: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Wed, 28 Sep 2016 14:54:39 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/md/dm-crypt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-crypt.c index 88a3b62..08e3de2 100644 --- a/drivers/md/dm-crypt.c +++ b/drivers/md/dm-crypt.c @@ -2016,7 +2016,7 @@ static int crypt_message(struct dm_target *ti, unsigned argc, char **argv) int ret = -EINVAL; if (argc < 2) - goto error; + goto show_warning; if (!strcasecmp(argv[0], "key")) { if (!test_bit(DM_CRYPT_SUSPENDED, &cc->flags)) { @@ -2040,8 +2040,7 @@ static int crypt_message(struct dm_target *ti, unsigned argc, char **argv) return crypt_wipe_key(cc); } } - -error: +show_warning: DMWARN("unrecognised message received."); return -EINVAL; }