Browse Source

there is no need to type cast for "object"

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2242 bbd45198-f89e-11dd-88c7-29a3b14d5316
dzzxzz@gmail.com 12 năm trước cách đây
mục cha
commit
f7aadffcde
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/object.c

+ 1 - 1
src/object.c

@@ -409,7 +409,7 @@ rt_object_t rt_object_find(const char *name, rt_uint8_t type)
 			/* leave critical */
 			/* leave critical */
 			rt_exit_critical();
 			rt_exit_critical();
 
 
-			return (rt_object_t)object;
+			return object;
 		}
 		}
 	}
 	}