mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
Clean up mutex_trylock noise
Ingo Molnar's semaphore to mutex conversions left some noise on a few trylock calls. Clean it up. Signed-off-by: Jean Delvare <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
97f0678467
commit
b3561ea946
2 changed files with 3 additions and 3 deletions
|
|
@ -216,7 +216,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
|
|||
int last_devnum = -1;
|
||||
struct gendisk *gd;
|
||||
|
||||
if (!!mutex_trylock(&mtd_table_mutex)) {
|
||||
if (mutex_trylock(&mtd_table_mutex)) {
|
||||
mutex_unlock(&mtd_table_mutex);
|
||||
BUG();
|
||||
}
|
||||
|
|
@ -294,7 +294,7 @@ int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
|
|||
|
||||
int del_mtd_blktrans_dev(struct mtd_blktrans_dev *old)
|
||||
{
|
||||
if (!!mutex_trylock(&mtd_table_mutex)) {
|
||||
if (mutex_trylock(&mtd_table_mutex)) {
|
||||
mutex_unlock(&mtd_table_mutex);
|
||||
BUG();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue