From patchwork Mon Aug 1 14:11:19 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: 9254441 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 D7CEE60865 for ; Mon, 1 Aug 2016 14:15:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C74E6284A2 for ; Mon, 1 Aug 2016 14:15:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8C2D284A7; Mon, 1 Aug 2016 14:15:09 +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 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 9A097284A2 for ; Mon, 1 Aug 2016 14:15:08 +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 u71EBVQm017499; Mon, 1 Aug 2016 10:11:31 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u71EBUIA030452 for ; Mon, 1 Aug 2016 10:11:30 -0400 Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u71EBUJn021566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 1 Aug 2016 10:11:30 -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 16B3285A07 for ; Mon, 1 Aug 2016 14:11:23 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id q128so26379890wma.1 for ; Mon, 01 Aug 2016 07:11:23 -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; bh=ukpwWXsOnmguDNFIEQtU+tUQ+wfVT5K78dIMUvyVjf8=; b=Zn16O/LwLF2b/aGJqoYstgCsItp/Pblh2D72hGeJq0pMbnpZel9389X/RnntdnGCaw gC4v3I0rysfXUeqfi/aFjbRL9Np2nxWlAEoZ9nNCqD6dtiwAnEnjH55kGbULdGb3dRTa YMf0VTFsU9wjQRON131dayibHfyOrD4+VzfNAbfnd74wGYB/Zwq9pQXDaoM/IcDh3p9t znIsjfGW+g2IbuZMf7RR5U3Ne5wpDfFNUU8VGjJfbA+TO8tO8Kkx3mL69NCHn6jc2DuO 8zlW9PqLe/zzYEHDRg091J7RHl31jww1sYdcDfF9QiBPxcRTh3ROoSrBl2+EEZzggUdn jufQ== 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; bh=ukpwWXsOnmguDNFIEQtU+tUQ+wfVT5K78dIMUvyVjf8=; b=F5FVAe3oRJSUEo3QAvtU+4ALpXWKnn8/ETj80B4HS/S8TvEX377ysJpHDkX0QTbDzY rktx0Z6UdzIXZHyg0P/AXXAthFm9tkqozXPW7UIZFxeTmGaBE3btnRK9KKwPuhAthxdm KLazbKP62ZAWIYh/YgK80zYTXfzppN6hglUXt8dUqY7da0saWrrRgXWz0sG8lTckU/1O U1LXiPauaR1NL1dBQKcnGZ3GdL7D60D7HXuFmJX8n1+6XNY5i56PUGnF0LSh8fBpNXO4 /rCqGEocgVE851RocHWJKzTV/WsGDROPA77SMylCbSdAFyPjZaLw9kUSsMvOaW9rAsUA yA6g== X-Gm-Message-State: AEkoouujcnMS+ea7m+pIGOQPs3XTu2mh/ctjWX+kBxMtytJ/nK6+ZLoXla+DnU+EVKTDJA== X-Received: by 10.194.39.35 with SMTP id m3mr50236417wjk.51.1470060681737; Mon, 01 Aug 2016 07:11:21 -0700 (PDT) Received: from localhost ([46.222.217.68]) by smtp.gmail.com with ESMTPSA id i80sm17254791wmf.11.2016.08.01.07.11.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Aug 2016 07:11:21 -0700 (PDT) From: Xose Vazquez Perez To: Date: Mon, 1 Aug 2016 16:11:19 +0200 Message-Id: <1470060679-6993-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.26]); Mon, 01 Aug 2016 14:11:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 01 Aug 2016 14:11:23 +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.24 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH] multipath-tools: delete nearly all attributes of the last member(NULL) in hwtable 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 They are "useless". Leave only mandatory attributes. Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- libmultipath/hwtable.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c index dfd84dc..d53cd34 100644 --- a/libmultipath/hwtable.c +++ b/libmultipath/hwtable.c @@ -901,18 +901,6 @@ static struct hwentry default_hw[] = { { .vendor = NULL, .product = NULL, - .features = NULL, - .hwhandler = NULL, - .selector = NULL, - .pgpolicy = 0, - .pgfailback = 0, - .rr_weight = 0, - .no_path_retry = 0, - .minio = 0, - .minio_rq = 0, - .checker_name = NULL, - .prio_name = NULL, - .prio_args = NULL, }, };