Michael Stefaniuc : server: Remove casts to the type of the casted expression.

Alexandre Julliard julliard at winehq.org
Wed Sep 21 13:35:15 CDT 2011


Module: wine
Branch: master
Commit: 835171c2e0ccb5c81a1e1e89a7d73e076c3f815d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=835171c2e0ccb5c81a1e1e89a7d73e076c3f815d

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Wed Sep 21 11:42:51 2011 +0200

server: Remove casts to the type of the casted expression.

---

 server/handle.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/handle.c b/server/handle.c
index c7cd417..0fd155a 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -267,7 +267,7 @@ static obj_handle_t alloc_global_handle_no_access_check( void *obj, unsigned int
 {
     if (!global_table)
     {
-        if (!(global_table = (struct handle_table *)alloc_handle_table( NULL, 0 )))
+        if (!(global_table = alloc_handle_table( NULL, 0 )))
             return 0;
         make_object_static( &global_table->obj );
     }
@@ -336,7 +336,7 @@ struct handle_table *copy_handle_table( struct process *process, struct process
     assert( parent_table );
     assert( parent_table->obj.ops == &handle_table_ops );
 
-    if (!(table = (struct handle_table *)alloc_handle_table( process, parent_table->count )))
+    if (!(table = alloc_handle_table( process, parent_table->count )))
         return NULL;
 
     if ((table->last = parent_table->last) >= 0)




More information about the wine-cvs mailing list