From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Freimann Subject: Re: [PATCH 2/3] vhost: check return values of pthread_* calls Date: Tue, 4 Jul 2017 11:28:41 +0200 Message-ID: <20170704092841.vxsdzhugd463vct7@dhcp-192-218.str.redhat.com> References: <20170704085043.3662-1-jfreimann@redhat.com> <20170704085043.3662-3-jfreimann@redhat.com> <20170704091728.GN11626@yliu-home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Cc: dev@dpdk.org, maxime.coquelin@redhat.com To: Yuanhan Liu Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 113192B84 for ; Tue, 4 Jul 2017 11:28:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20170704091728.GN11626@yliu-home> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Jul 04, 2017 at 05:17:28PM +0800, Yuanhan Liu wrote: >On Tue, Jul 04, 2017 at 10:50:42AM +0200, Jens Freimann wrote: >> +out_mutex: >> + if (pthread_mutex_destroy(&vsocket->conn_mutex)) >> + RTE_LOG(ERR, VHOST_CONFIG, >> + "error: failed to destroy connection mutex\n"); > >One minor comment though: {} should be used for one signle statement >spawning more than one lines. See section "1.6.2. Control Statements >and Loops": > > http://dpdk.org/doc/guides/contributing/coding_style.html Sorry, checkpatch didn't complain. I'll make sure to add the parentheses in the future. >Anyway, I fixed while apply. Thanks! regards, Jens