Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965297AbcLTTXj (ORCPT ); Tue, 20 Dec 2016 14:23:39 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:44374 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965120AbcLTTXb (ORCPT ); Tue, 20 Dec 2016 14:23:31 -0500 Date: Tue, 20 Dec 2016 14:23:29 -0500 (EST) Message-Id: <20161220.142329.503730398113255914.davem@davemloft.net> To: geliangtang@gmail.com Cc: saeedm@mellanox.com, matanb@mellanox.com, leonro@mellanox.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx5: use rb_entry() From: David Miller In-Reply-To: <8443fa3fa03d82c2b829375d8020762e5236dc6d.1482203930.git.geliangtang@gmail.com> References: <8443fa3fa03d82c2b829375d8020762e5236dc6d.1482203930.git.geliangtang@gmail.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 20 Dec 2016 10:24:13 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 241 Lines: 9 From: Geliang Tang Date: Tue, 20 Dec 2016 22:02:14 +0800 > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang Applied.