|
@@ -88,17 +88,13 @@ static inline u32 _down_sema(struct semaphore *sema)
|
|
{
|
|
{
|
|
if (down_interruptible(sema))
|
|
if (down_interruptible(sema))
|
|
return _FAIL;
|
|
return _FAIL;
|
|
- else
|
|
|
|
- return _SUCCESS;
|
|
|
|
|
|
+ return _SUCCESS;
|
|
}
|
|
}
|
|
|
|
|
|
static inline u32 end_of_queue_search(struct list_head *head,
|
|
static inline u32 end_of_queue_search(struct list_head *head,
|
|
struct list_head *plist)
|
|
struct list_head *plist)
|
|
{
|
|
{
|
|
- if (head == plist)
|
|
|
|
- return true;
|
|
|
|
- else
|
|
|
|
- return false;
|
|
|
|
|
|
+ return (head == plist);
|
|
}
|
|
}
|
|
|
|
|
|
static inline void sleep_schedulable(int ms)
|
|
static inline void sleep_schedulable(int ms)
|