From patchwork Wed Aug 17 02:05:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: peng.liang5@zte.com.cn X-Patchwork-Id: 9285227 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 C370D600CB for ; Wed, 17 Aug 2016 07:03:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5D0728849 for ; Wed, 17 Aug 2016 07:03:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA8842884B; Wed, 17 Aug 2016 07:03:19 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mx6-phx2.redhat.com (mx6-phx2.redhat.com [209.132.183.39]) (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 EF79328849 for ; Wed, 17 Aug 2016 07:03:18 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx6-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7H6xovN022878; Wed, 17 Aug 2016 02:59:50 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u7H27HdV013610 for ; Tue, 16 Aug 2016 22:07:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id C0FF92156707; Wed, 17 Aug 2016 02:07:17 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.rdu2.redhat.com [10.11.55.2]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B81002166BCC for ; Wed, 17 Aug 2016 02:07:17 +0000 (UTC) Received: from zte.com.cn (mx7.zte.com.cn [202.103.147.169]) by mx1.redhat.com (Postfix) with ESMTP id 1A69D486E0 for ; Wed, 17 Aug 2016 02:07:12 +0000 (UTC) Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Websense Email Security Gateway with ESMTP id 0D9C2CCDDAA51; Wed, 17 Aug 2016 10:06:35 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id u7H26RJn074679; Wed, 17 Aug 2016 10:06:27 +0800 (GMT-8) (envelope-from peng.liang5@zte.com.cn) Received: from localhost.localdomain ([10.118.202.203]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2016081710063074-575116 ; Wed, 17 Aug 2016 10:06:30 +0800 From: peng.liang5@zte.com.cn To: christophe varoqui Date: Wed, 17 Aug 2016 10:05:39 +0800 Message-Id: <1471399539-7420-1-git-send-email-peng.liang5@zte.com.cn> X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2016-08-17 10:06:30, Serialize by Router on notes_smtp/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2016-08-17 10:06:08, Serialize complete at 2016-08-17 10:06:08 X-MAIL: mse01.zte.com.cn u7H26RJn074679 X-Greylist: Sender IP whitelisted by DNSRBL, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 17 Aug 2016 02:07:12 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 17 Aug 2016 02:07:12 +0000 (UTC) for IP:'202.103.147.169' DOMAIN:'mx7.zte.com.cn' HELO:'zte.com.cn' FROM:'peng.liang5@zte.com.cn' RCPT:'' X-RedHat-Spam-Score: -2.47 (BAYES_50, DCC_REPUT_00_12, RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS) 202.103.147.169 mx7.zte.com.cn 202.103.147.169 mx7.zte.com.cn X-Scanned-By: MIMEDefang 2.78 on 10.11.55.2 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Wed, 17 Aug 2016 02:59:10 -0400 Cc: zhang.kai16@zte.com.cn, dm-devel@redhat.com, peng liang Subject: [dm-devel] [PATCH] libmultipath: remove redundant code in store_pathinfo 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 From: peng liang Signed-off-by: peng liang --- libmultipath/discovery.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index bb3116d..0017d18 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -95,8 +95,6 @@ store_pathinfo (vector pathvec, struct config *conf, goto out; err = store_path(pathvec, pp); - if (err) - goto out; out: if (err)