diff options
author | James A Shackleford <shack@linux.com> | 2014-06-25 06:52:35 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-27 04:33:15 +0400 |
commit | 9672b1bd831b12869aaa1ae0ede0e45cd18c5272 (patch) | |
tree | 51376cb61404994a7671fcedb902c897aa0f0a4d /drivers/staging/rtl8712/osdep_service.h | |
parent | 534c4acd1d45942eaae0db5858c82a33fac47468 (diff) | |
download | linux-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.h | 10 |
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, |