Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255395
b: refs/heads/master
c: 9c1cacd
h: refs/heads/master
i:
  255393: a5d0399
  255391: abe94e8
v: v3
  • Loading branch information
Larry Finger authored and John W. Linville committed Jun 1, 2011
1 parent ed3d232 commit 083e148
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24f7580e852b5472b51eea322bb78454df0054b8
refs/heads/master: 9c1cacd2c08ede12765e838c35b6d1e9eb900f60
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/b43/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,14 +757,14 @@ static void dmacontroller_cleanup(struct b43_dmaring *ring)

static void free_all_descbuffers(struct b43_dmaring *ring)
{
struct b43_dmadesc_generic *desc;
struct b43_dmadesc_meta *meta;
int i;

if (!ring->used_slots)
return;
for (i = 0; i < ring->nr_slots; i++) {
desc = ring->ops->idx2desc(ring, i, &meta);
/* get meta - ignore returned value */
ring->ops->idx2desc(ring, i, &meta);

if (!meta->skb || b43_dma_ptr_is_poisoned(meta->skb)) {
B43_WARN_ON(!ring->tx);
Expand Down Expand Up @@ -1388,7 +1388,6 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
{
const struct b43_dma_ops *ops;
struct b43_dmaring *ring;
struct b43_dmadesc_generic *desc;
struct b43_dmadesc_meta *meta;
int slot, firstused;
bool frame_succeed;
Expand Down Expand Up @@ -1416,7 +1415,8 @@ void b43_dma_handle_txstatus(struct b43_wldev *dev,
ops = ring->ops;
while (1) {
B43_WARN_ON(slot < 0 || slot >= ring->nr_slots);
desc = ops->idx2desc(ring, slot, &meta);
/* get meta - ignore returned value */
ops->idx2desc(ring, slot, &meta);

if (b43_dma_ptr_is_poisoned(meta->skb)) {
b43dbg(dev->wl, "Poisoned TX slot %d (first=%d) "
Expand Down
2 changes: 0 additions & 2 deletions trunk/drivers/net/wireless/b43/lo.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,14 +301,12 @@ static void lo_measure_gain_values(struct b43_wldev *dev,
max_rx_gain = 0;

if (has_loopback_gain(phy)) {
int trsw_rx = 0;
int trsw_rx_gain;

if (use_trsw_rx) {
trsw_rx_gain = gphy->trsw_rx_gain / 2;
if (max_rx_gain >= trsw_rx_gain) {
trsw_rx_gain = max_rx_gain - trsw_rx_gain;
trsw_rx = 0x20;
}
} else
trsw_rx_gain = max_rx_gain;
Expand Down

0 comments on commit 083e148

Please sign in to comment.