From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 2/3] vhost: check return values of pthread_* calls Date: Tue, 4 Jul 2017 17:17:28 +0800 Message-ID: <20170704091728.GN11626@yliu-home> References: <20170704085043.3662-1-jfreimann@redhat.com> <20170704085043.3662-3-jfreimann@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, maxime.coquelin@redhat.com To: Jens Freimann Return-path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id E8F842C8 for ; Tue, 4 Jul 2017 11:17:35 +0200 (CEST) Received: by mail-pg0-f67.google.com with SMTP id d193so7652063pgc.2 for ; Tue, 04 Jul 2017 02:17:35 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20170704085043.3662-3-jfreimann@redhat.com> 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 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 Anyway, I fixed while apply. --yliu