From patchwork Mon Jun 14 13:04:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 105956 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o5ED2xDR030801 for ; Mon, 14 Jun 2010 13:02:59 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753369Ab0FNNC7 (ORCPT ); Mon, 14 Jun 2010 09:02:59 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:57329 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753342Ab0FNNC6 (ORCPT ); Mon, 14 Jun 2010 09:02:58 -0400 Received: by fxm8 with SMTP id 8so2480186fxm.19 for ; Mon, 14 Jun 2010 06:02:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=tkMleXVx10KKQ/QXRtUDe86ieSgjSxTNAtQHrWMkaK8=; b=C4c73/w1nfA4XGOjiLuqjFUdBUaBZ4XXrKYlh2DOED15VxzZ+XZT/K4+eHu9PaabN7 MC5Ct0nsaNKOWxW5Z81dNgk/M6EZMFeth5Ovewd3D4utjNZtz8Hn2+7lG1YGyOvrgFHC x9pbDgV7gX+dtlhb9Jnbr6hhST6YQO0oczfMU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=dE/n36HCIxtMDHXRrPLtVf1IJw3tPtxcEn8qFlzE8X8ifUPCDuDTJPwhtPFKA/Yprx 4T9kfNx3yeUeFazL7wmjL8tcDD+Smnto9pyavCxiIPfv9qtA5Os6GHeQuwP21HICD+SR ozIyGI/dpotb2lwrFV+lMrtMity2gF/6yTyHs= Received: by 10.87.70.19 with SMTP id x19mr9170091fgk.14.1276520576705; Mon, 14 Jun 2010 06:02:56 -0700 (PDT) Received: from me.localdomain (87.69.36.170.cable.012.net.il [87.69.36.170]) by mx.google.com with ESMTPS id o19sm7132683fal.47.2010.06.14.06.02.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 06:02:56 -0700 (PDT) Received: by me.localdomain (Postfix, from userid 1000) id F2B1811E1A; Mon, 14 Jun 2010 16:04:04 +0300 (IDT) Date: Mon, 14 Jun 2010 16:04:04 +0300 From: Sasha Khapyorsky To: "Smith, Stan" , Hal Rosenstock Cc: "linux-rdma@vger.kernel.org" Subject: [PATCH] iba/ib_types.h: remove assertion in ib_get_attr_offset() Message-ID: <20100614130404.GZ20172@me> References: <20100603134209.GA12225@comcast.net> <20100609054341.GK28549@me> <20100609121036.GC20172@me> <20100609124848.GE20172@me> <20100609171516.GI20172@me> <3F6F638B8D880340AB536D29CD4C1E1925634C8FE9@orsmsx501.amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3F6F638B8D880340AB536D29CD4C1E1925634C8FE9@orsmsx501.amr.corp.intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 14 Jun 2010 13:03:00 +0000 (UTC) diff --git a/opensm/include/iba/ib_types.h b/opensm/include/iba/ib_types.h index 203c319..e1bc102 100644 --- a/opensm/include/iba/ib_types.h +++ b/opensm/include/iba/ib_types.h @@ -4395,7 +4395,6 @@ static inline uint32_t OSM_API ib_get_attr_size(IN const ib_net16_t attr_offset) static inline ib_net16_t OSM_API ib_get_attr_offset(IN const uint32_t attr_size) { - CL_ASSERT((attr_size & 0x07) == 0); return (cl_hton16((uint16_t) (attr_size >> 3))); }