diff options
author | mtm <mtm@FreeBSD.org> | 2004-01-19 15:00:57 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2004-01-19 15:00:57 +0000 |
commit | b6945f083eda9ba4a2c3418c60a4583889812645 (patch) | |
tree | b92cabf4f5100cfd7a9d788a75da30b2e4704f3c /sys/dev/ata | |
parent | 2d3f49ebd38d6441b693d51adcf071088817ddf5 (diff) | |
download | FreeBSD-src-b6945f083eda9ba4a2c3418c60a4583889812645.zip FreeBSD-src-b6945f083eda9ba4a2c3418c60a4583889812645.tar.gz |
Refactor _pthread_mutex_init
o Simplify the logic by removing a lot of unnecesary nesting
o Reduce the amount of local variables
o Zero-out the allocated structure and get rid of
all the unnecessary setting to 0 and NULL;
Refactor _pthread_mutex_destroy
o Simplify the logic by removing a lot of unnecesary nesting
o No need to check pointer that the mutex attributes points
to. Checking passed in pointer is enough.
Diffstat (limited to 'sys/dev/ata')
0 files changed, 0 insertions, 0 deletions