* [PATCH] opensm/complib/cl_passivelock.h: remove unneeded casting
@ 2010-02-04 14:14 Yevgeny Kliteynik
[not found] ` <4B6AD651.3080303-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Yevgeny Kliteynik @ 2010-02-04 14:14 UTC (permalink / raw)
To: Sasha Khapyorsky; +Cc: Linux RDMA
After converting cl_status_t from enum to int,
no need to do this casting any more.
Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
---
Note: this patch replaces the following patch:
"[PATCH v3] opensm/complib/cl_passivelock.h: some casting issues"
opensm/include/complib/cl_passivelock.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
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);
}
--
1.5.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] opensm/complib/cl_passivelock.h: remove unneeded casting
[not found] ` <4B6AD651.3080303-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2010-02-04 22:27 ` Sasha Khapyorsky
0 siblings, 0 replies; 2+ messages in thread
From: Sasha Khapyorsky @ 2010-02-04 22:27 UTC (permalink / raw)
To: Yevgeny Kliteynik; +Cc: Linux RDMA
On 16:14 Thu 04 Feb , Yevgeny Kliteynik wrote:
> After converting cl_status_t from enum to int,
> no need to do this casting any more.
>
> Signed-off-by: Yevgeny Kliteynik <kliteyn-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Both applied. Thanks.
Sasha
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-04 22:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04 14:14 [PATCH] opensm/complib/cl_passivelock.h: remove unneeded casting Yevgeny Kliteynik
[not found] ` <4B6AD651.3080303-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2010-02-04 22:27 ` Sasha Khapyorsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).