diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-19 21:17:37 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-01-19 21:17:37 +0000 |
commit | a6755a8af06d2602b771e41aab8db262fd3184ec (patch) | |
tree | a65a82dbba91cac2b42f8d73e6d96d701e473847 /nuttx/sched/pthread_mutexinit.c | |
parent | e6c2f9b9de21f1281370f850cac367897eba9c60 (diff) | |
download | px4-nuttx-a6755a8af06d2602b771e41aab8db262fd3184ec.tar.gz px4-nuttx-a6755a8af06d2602b771e41aab8db262fd3184ec.tar.bz2 px4-nuttx-a6755a8af06d2602b771e41aab8db262fd3184ec.zip |
Fix more issues detected by CppCheck tool
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3264 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/pthread_mutexinit.c')
-rw-r--r-- | nuttx/sched/pthread_mutexinit.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/sched/pthread_mutexinit.c b/nuttx/sched/pthread_mutexinit.c index 60a095caf..6004076cb 100644 --- a/nuttx/sched/pthread_mutexinit.c +++ b/nuttx/sched/pthread_mutexinit.c @@ -1,7 +1,7 @@ /**************************************************************************** * sched/pthread_mutexinit.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -124,14 +124,14 @@ int pthread_mutex_init(FAR pthread_mutex_t *mutex, FAR pthread_mutexattr_t *attr { ret = EINVAL; } - } - /* Set up attributes unique to the mutex type */ + /* Set up attributes unique to the mutex type */ #ifdef CONFIG_MUTEX_TYPES - mutex->type = type; - mutex->nlocks = 0; + mutex->type = type; + mutex->nlocks = 0; #endif + } sdbg("Returning %d\n", ret); return ret; |