Message ID | 1533157038-3924-16-git-send-email-bmarzins@redhat.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C87FC174A for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 1 Aug 2018 20:59:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA0F32B7DB for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 1 Aug 2018 20:59:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE9BA2B7DF; Wed, 1 Aug 2018 20:59:06 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 74C282B7DD for <patchwork-dm-devel@patchwork.kernel.org>; Wed, 1 Aug 2018 20:59:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5621C307D855; Wed, 1 Aug 2018 20:59:05 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 26C286E40B; Wed, 1 Aug 2018 20:59:05 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E4F5F18037F2; Wed, 1 Aug 2018 20:59:04 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w71KvooU028087 for <dm-devel@listman.util.phx.redhat.com>; Wed, 1 Aug 2018 16:57:50 -0400 Received: by smtp.corp.redhat.com (Postfix) id F23311006EB9; Wed, 1 Aug 2018 20:57:49 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from redhat.com (octiron.msp.redhat.com [10.15.80.209]) by smtp.corp.redhat.com (Postfix) with SMTP id C18231006EB5; Wed, 1 Aug 2018 20:57:48 +0000 (UTC) Received: by redhat.com (sSMTP sendmail emulation); Wed, 01 Aug 2018 15:57:48 -0500 From: "Benjamin Marzinski" <bmarzins@redhat.com> To: device-mapper development <dm-devel@redhat.com> Date: Wed, 1 Aug 2018 15:57:01 -0500 Message-Id: <1533157038-3924-16-git-send-email-bmarzins@redhat.com> In-Reply-To: <1533157038-3924-1-git-send-email-bmarzins@redhat.com> References: <1533157038-3924-1-git-send-email-bmarzins@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-loop: dm-devel@redhat.com Cc: Martin Wilck <mwilck@suse.com> Subject: [dm-devel] [PATCH 15/32] kpartx: remove duplicated gpt validation check X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Wed, 01 Aug 2018 20:59:05 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Misc Multipath patches
|
expand
|
diff --git a/kpartx/gpt.c b/kpartx/gpt.c index 6ef20f9..e31611a 100644 --- a/kpartx/gpt.c +++ b/kpartx/gpt.c @@ -348,16 +348,6 @@ is_gpt_valid(int fd, uint64_t lba, return 0; } - - /* Check that sizeof_partition_entry has the correct value */ - if (__le32_to_cpu((*gpt)->sizeof_partition_entry) != sizeof(gpt_entry)) { - // printf("GUID partition entry size check failed.\n"); - free(*gpt); - *gpt = NULL; - return 0; - } - - if (!(*ptes = alloc_read_gpt_entries(fd, *gpt))) { free(*gpt); *gpt = NULL;
The identical check exists twice in a row. Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> --- kpartx/gpt.c | 10 ---------- 1 file changed, 10 deletions(-)