diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-31 23:52:36 -0400 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-01 09:54:35 -0400 |
commit | 20f48653fcf51f6d1246b5f3f86b40ed779385b2 (patch) | |
tree | b29e5c074b7499165b2971efcda71810c779d4e9 /drivers/staging/bcm/LeakyBucket.c | |
parent | 26a0e39ac8ed1f38b31baeb901bc76501466d34e (diff) |
beceem: get rid of unnecessary inline usage
Many routines were tagged with inline_ but GCC does a better
job of deciding this.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Diffstat (limited to 'drivers/staging/bcm/LeakyBucket.c')
-rw-r--r-- | drivers/staging/bcm/LeakyBucket.c | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/drivers/staging/bcm/LeakyBucket.c b/drivers/staging/bcm/LeakyBucket.c index cae382313ce..9c73862d512 100644 --- a/drivers/staging/bcm/LeakyBucket.c +++ b/drivers/staging/bcm/LeakyBucket.c | |||
@@ -75,7 +75,7 @@ static VOID UpdateTokenCount(register PMINI_ADAPTER Adapter) | |||
75 | * Returns - The number of bytes allowed for transmission. | 75 | * Returns - The number of bytes allowed for transmission. |
76 | * | 76 | * |
77 | ***********************************************************************/ | 77 | ***********************************************************************/ |
78 | static __inline ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, PacketInfo *psSF) | 78 | static ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, PacketInfo *psSF) |
79 | { | 79 | { |
80 | BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL, "IsPacketAllowedForFlow ===>"); | 80 | BCM_DEBUG_PRINT(Adapter,DBG_TYPE_TX, TOKEN_COUNTS, DBG_LVL_ALL, "IsPacketAllowedForFlow ===>"); |
81 | /* Validate the parameters */ | 81 | /* Validate the parameters */ |
@@ -107,38 +107,14 @@ static __inline ULONG GetSFTokenCount(PMINI_ADAPTER Adapter, PacketInfo *psSF) | |||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
109 | 109 | ||
110 | static __inline void RemovePacketFromQueue(PacketInfo *pPackInfo , struct sk_buff *Packet) | ||
111 | { | ||
112 | struct sk_buff *psQueueCurrent=NULL, *psLastQueueNode=NULL; | ||
113 | psQueueCurrent = pPackInfo->FirstTxQueue; | ||
114 | while(psQueueCurrent) | ||
115 | { | ||
116 | if(Packet == psQueueCurrent) | ||
117 | { | ||
118 | if(psQueueCurrent == pPackInfo->FirstTxQueue) | ||
119 | { | ||
120 | pPackInfo->FirstTxQueue=psQueueCurrent->next; | ||
121 | if(psQueueCurrent==pPackInfo->LastTxQueue) | ||
122 | pPackInfo->LastTxQueue=NULL; | ||
123 | } | ||
124 | else | ||
125 | { | ||
126 | psLastQueueNode->next=psQueueCurrent->next; | ||
127 | } | ||
128 | break; | ||
129 | } | ||
130 | psLastQueueNode = psQueueCurrent; | ||
131 | psQueueCurrent=psQueueCurrent->next; | ||
132 | } | ||
133 | } | ||
134 | /** | 110 | /** |
135 | @ingroup tx_functions | 111 | @ingroup tx_functions |
136 | This function despatches packet from the specified queue. | 112 | This function despatches packet from the specified queue. |
137 | @return Zero(success) or Negative value(failure) | 113 | @return Zero(success) or Negative value(failure) |
138 | */ | 114 | */ |
139 | static __inline INT SendPacketFromQueue(PMINI_ADAPTER Adapter,/**<Logical Adapter*/ | 115 | static INT SendPacketFromQueue(PMINI_ADAPTER Adapter,/**<Logical Adapter*/ |
140 | PacketInfo *psSF, /**<Queue identifier*/ | 116 | PacketInfo *psSF, /**<Queue identifier*/ |
141 | struct sk_buff* Packet) /**<Pointer to the packet to be sent*/ | 117 | struct sk_buff* Packet) /**<Pointer to the packet to be sent*/ |
142 | { | 118 | { |
143 | INT Status=STATUS_FAILURE; | 119 | INT Status=STATUS_FAILURE; |
144 | UINT uiIndex =0,PktLen = 0; | 120 | UINT uiIndex =0,PktLen = 0; |
@@ -180,8 +156,7 @@ static __inline INT SendPacketFromQueue(PMINI_ADAPTER Adapter,/**<Logical Adapte | |||
180 | * Returns - None. | 156 | * Returns - None. |
181 | * | 157 | * |
182 | ****************************************************************************/ | 158 | ****************************************************************************/ |
183 | static __inline VOID CheckAndSendPacketFromIndex | 159 | static VOID CheckAndSendPacketFromIndex(PMINI_ADAPTER Adapter, PacketInfo *psSF) |
184 | (PMINI_ADAPTER Adapter, PacketInfo *psSF) | ||
185 | { | 160 | { |
186 | struct sk_buff *QueuePacket=NULL; | 161 | struct sk_buff *QueuePacket=NULL; |
187 | char *pControlPacket = NULL; | 162 | char *pControlPacket = NULL; |