fix: 内核告警清理
【背景】 内核代码经代码扫描工具发现存在一些关于代码格式的告警, 现经修改解除掉告警. 【修改方案】 修改了代码中格式不规范的地方,修改的点有: 1.代码中一行过长 2.没有合理的添加空格和空行 3.没有按照规范进行缩进 4.括号的格式没有按照规范 5.注释的格式不对以及存在魔数字 6.函数的声明与定义的格式不一致 并更新了修改文件的版权头时间 【影响】 对现有的产品编译不会有影响。 re #I5H6F5 Signed-off-by: yinjiaming <yinjiaming@huawei.com> Change-Id: Ie46b5b3238fd88c25f99542b8ccd138b956c6458
This commit is contained in:
@@ -50,8 +50,8 @@ extern "C" {
|
||||
* Rwlock object.
|
||||
*/
|
||||
typedef struct OsRwlock {
|
||||
INT32 magic:24; /**< Magic number */
|
||||
INT32 rwCount:8; /**< Times of locking the rwlock, rwCount > 0 when rwkick is read mode, rwCount < 0
|
||||
INT32 magic : 24; /**< Magic number */
|
||||
INT32 rwCount : 8; /**< Times of locking the rwlock, rwCount > 0 when rwkick is read mode, rwCount < 0
|
||||
when the rwlock is write mode, rwCount = 0 when the lock is free. */
|
||||
VOID *writeOwner; /**< The current write thread that is locking the rwlock */
|
||||
LOS_DL_LIST readList; /**< Read waiting list */
|
||||
|
||||
Reference in New Issue
Block a user