From patchwork Thu Feb 4 14:14:41 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yevgeny Kliteynik X-Patchwork-Id: 76989 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 o14EEvCe029577 for ; Thu, 4 Feb 2010 14:14:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932307Ab0BDOO5 (ORCPT ); Thu, 4 Feb 2010 09:14:57 -0500 Received: from mail-vw0-f66.google.com ([209.85.212.66]:36532 "EHLO mail-vw0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932302Ab0BDOO4 (ORCPT ); Thu, 4 Feb 2010 09:14:56 -0500 Received: by vws15 with SMTP id 15so436167vws.1 for ; Thu, 04 Feb 2010 06:14:52 -0800 (PST) Received: by 10.220.122.88 with SMTP id k24mr1819245vcr.79.1265292885878; Thu, 04 Feb 2010 06:14:45 -0800 (PST) Received: from ?10.4.1.29? ([62.219.166.71]) by mx.google.com with ESMTPS id 40sm1306536vws.17.2010.02.04.06.14.43 (version=SSLv3 cipher=RC4-MD5); Thu, 04 Feb 2010 06:14:44 -0800 (PST) Message-ID: <4B6AD651.3080303@dev.mellanox.co.il> Date: Thu, 04 Feb 2010 16:14:41 +0200 From: Yevgeny Kliteynik User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sasha Khapyorsky CC: Linux RDMA Subject: [PATCH] opensm/complib/cl_passivelock.h: remove unneeded casting 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]); Thu, 04 Feb 2010 14:14:58 +0000 (UTC) diff --git a/opensm/include/complib/cl_passivelock.h b/opensm/include/complib/cl_passivelock.h index bafd339..aea3bab 100644 --- a/opensm/include/complib/cl_passivelock.h +++ b/opensm/include/complib/cl_passivelock.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2004, 2005 Voltaire, Inc. All rights reserved. - * Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved. + * Copyright (c) 2002-2010 Mellanox Technologies LTD. All rights reserved. * Copyright (c) 1996-2003 Intel Corporation. All rights reserved. * * This software is available to you under a choice of one of two @@ -196,7 +196,7 @@ static inline cl_status_t cl_plock_init(IN cl_plock_t * const p_lock) cl_status_t status; CL_ASSERT(p_lock); - status = (cl_status_t) pthread_rwlock_init(&p_lock->lock, NULL); + status = pthread_rwlock_init(&p_lock->lock, NULL); if (status) return CL_ERROR; p_lock->state = CL_INITIALIZED; @@ -238,7 +238,7 @@ static inline void cl_plock_acquire(IN cl_plock_t * const p_lock) CL_ASSERT(p_lock); CL_ASSERT(p_lock->state == CL_INITIALIZED); - status = (cl_status_t) pthread_rwlock_rdlock(&p_lock->lock); + status = pthread_rwlock_rdlock(&p_lock->lock); CL_ASSERT(status == 0); } @@ -271,7 +271,7 @@ static inline void cl_plock_excl_acquire(IN cl_plock_t * const p_lock) CL_ASSERT(p_lock); CL_ASSERT(p_lock->state == CL_INITIALIZED); - status = (cl_status_t) pthread_rwlock_wrlock(&p_lock->lock); + status = pthread_rwlock_wrlock(&p_lock->lock); CL_ASSERT(status == 0); } @@ -303,7 +303,7 @@ static inline void cl_plock_release(IN cl_plock_t * const p_lock) CL_ASSERT(p_lock); CL_ASSERT(p_lock->state == CL_INITIALIZED); - status = (cl_status_t) pthread_rwlock_unlock(&p_lock->lock); + status = pthread_rwlock_unlock(&p_lock->lock); CL_ASSERT(status == 0); }