summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8712/osdep_service.h
diff options
context:
space:
mode:
authorJames A Shackleford <shack@linux.com>2014-06-25 06:52:35 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-27 04:33:15 +0400
commit9672b1bd831b12869aaa1ae0ede0e45cd18c5272 (patch)
tree51376cb61404994a7671fcedb902c897aa0f0a4d /drivers/staging/rtl8712/osdep_service.h
parent534c4acd1d45942eaae0db5858c82a33fac47468 (diff)
downloadlinux-9672b1bd831b12869aaa1ae0ede0e45cd18c5272.tar.xz
staging: rtl8712: remove wrapper function is_list_empty
is_list_empty is just an inline wrapper around list_empty. This patch removes the wrapper and directly uses list_empty instead. Signed-off-by: James A Shackleford <shack@linux.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/osdep_service.h')
-rw-r--r--drivers/staging/rtl8712/osdep_service.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h
index 81f48a60646d..3857cc0b6b75 100644
--- a/drivers/staging/rtl8712/osdep_service.h
+++ b/drivers/staging/rtl8712/osdep_service.h
@@ -115,14 +115,6 @@ For the following list_xxx operations,
caller must guarantee the atomic context.
Otherwise, there will be racing condition.
*/
-static inline u32 is_list_empty(struct list_head *phead)
-{
- if (list_empty(phead))
- return true;
- else
- return false;
-}
-
static inline void list_insert_tail(struct list_head *plist,
struct list_head *phead)
{
@@ -139,7 +131,7 @@ static inline u32 _down_sema(struct semaphore *sema)
static inline u32 _queue_empty(struct __queue *pqueue)
{
- return is_list_empty(&(pqueue->queue));
+ return list_empty(&(pqueue->queue));
}
static inline u32 end_of_queue_search(struct list_head *head,