From patchwork Mon Oct 5 17:30:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 51759 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n95HYpvl005325 for ; Mon, 5 Oct 2009 17:34:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753776AbZJERdz (ORCPT ); Mon, 5 Oct 2009 13:33:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754106AbZJERdz (ORCPT ); Mon, 5 Oct 2009 13:33:55 -0400 Received: from qmta11.westchester.pa.mail.comcast.net ([76.96.59.211]:42872 "EHLO QMTA11.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753776AbZJERdy (ORCPT ); Mon, 5 Oct 2009 13:33:54 -0400 Received: from OMTA02.westchester.pa.mail.comcast.net ([76.96.62.19]) by QMTA11.westchester.pa.mail.comcast.net with comcast id ozva1c0080QuhwU5B5ZJt3; Mon, 05 Oct 2009 17:33:18 +0000 Received: from hal.comcast.net ([75.69.247.31]) by OMTA02.westchester.pa.mail.comcast.net with comcast id p5ZJ1c0080hNrtn3N5ZJLj; Mon, 05 Oct 2009 17:33:18 +0000 Received: from hal.comcast.net (localhost.localdomain [127.0.0.1]) by hal.comcast.net (8.14.3/8.14.3) with ESMTP id n95HVEQj025059; Mon, 5 Oct 2009 13:31:19 -0400 Received: (from hnrose@localhost) by hal.comcast.net (8.14.3/8.14.3/Submit) id n95HUvFa025028; Mon, 5 Oct 2009 13:30:57 -0400 Date: Mon, 5 Oct 2009 13:30:57 -0400 From: Hal Rosenstock To: sashak@voltaire.com Cc: linux-rdma@vger.kernel.org Subject: [PATCH] opensm/osm_mcast_tbl.c: Cosmetic changes Message-ID: <20091005173057.GA25025@comcast.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/opensm/opensm/osm_mcast_tbl.c b/opensm/opensm/osm_mcast_tbl.c index dc5e5f3..d7c9529 100644 --- a/opensm/opensm/osm_mcast_tbl.c +++ b/opensm/opensm/osm_mcast_tbl.c @@ -37,7 +37,7 @@ /* * Abstract: * Implementation of osm_mcast_tbl_t. - * This object represents an multicast forwarding table. + * This object represents a multicast forwarding table. * This object is part of the opensm family of objects. */ @@ -68,7 +68,7 @@ ib_api_status_t osm_mcast_tbl_init(IN osm_mcast_tbl_t * p_tbl, This switch apparently doesn't support multicast. Everything is initialized to zero already, so return. */ - return (IB_SUCCESS); + return IB_SUCCESS; } p_tbl->num_entries = capacity; @@ -98,9 +98,9 @@ ib_api_status_t osm_mcast_tbl_init(IN osm_mcast_tbl_t * p_tbl, 1) * IB_MCAST_MASK_SIZE / 8); if (p_tbl->p_mask_tbl == NULL) - return (IB_INSUFFICIENT_MEMORY); + return IB_INSUFFICIENT_MEMORY; - return (IB_SUCCESS); + return IB_SUCCESS; } /********************************************************************** @@ -162,7 +162,7 @@ boolean_t osm_mcast_tbl_is_port(IN const osm_mcast_tbl_t * p_tbl, bit_mask); } - return (FALSE); + return FALSE; } /********************************************************************** @@ -203,15 +203,15 @@ ib_api_status_t osm_mcast_tbl_set_block(IN osm_mcast_tbl_t * p_tbl, CL_ASSERT(p_block); if (block_num > p_tbl->max_block) - return (IB_INVALID_PARAMETER); + return IB_INVALID_PARAMETER; if (position > p_tbl->max_position) - return (IB_INVALID_PARAMETER); + return IB_INVALID_PARAMETER; mlid_start_ho = (uint16_t) (block_num * IB_MCAST_BLOCK_SIZE); if (mlid_start_ho + IB_MCAST_BLOCK_SIZE - 1 > p_tbl->max_mlid_ho) - return (IB_INVALID_PARAMETER); + return IB_INVALID_PARAMETER; for (i = 0; i < IB_MCAST_BLOCK_SIZE; i++) (*p_tbl->p_mask_tbl)[mlid_start_ho + i][position] = p_block[i]; @@ -219,7 +219,7 @@ ib_api_status_t osm_mcast_tbl_set_block(IN osm_mcast_tbl_t * p_tbl, if (block_num > p_tbl->max_block_in_use) p_tbl->max_block_in_use = (uint16_t) block_num; - return (IB_SUCCESS); + return IB_SUCCESS; } /********************************************************************** @@ -252,14 +252,14 @@ boolean_t osm_mcast_tbl_get_block(IN osm_mcast_tbl_t * p_tbl, CL_ASSERT(p_block); if (block_num > p_tbl->max_block_in_use) - return (FALSE); + return FALSE; if (position > p_tbl->max_position) { /* Caller shouldn't do this for efficiency's sake... */ memset(p_block, 0, IB_SMP_DATA_SIZE); - return (TRUE); + return TRUE; } mlid_start_ho = (uint16_t) (block_num * IB_MCAST_BLOCK_SIZE); @@ -267,5 +267,5 @@ boolean_t osm_mcast_tbl_get_block(IN osm_mcast_tbl_t * p_tbl, for (i = 0; i < IB_MCAST_BLOCK_SIZE; i++) p_block[i] = (*p_tbl->p_mask_tbl)[mlid_start_ho + i][position]; - return (TRUE); + return TRUE; }