Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325444
b: refs/heads/master
c: a00979c
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent 1a089b4 commit db892bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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: bae95b09076abeecd193a8efbc34c00f4309d3f6
refs/heads/master: a00979cccb9cc9727b8357f8fdf1c1924c9b73ef
1 change: 0 additions & 1 deletion trunk/drivers/staging/sbe-2t3e3/2t3e3.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,6 @@ void dc_restart(struct channel *);
void dc_receiver_onoff(struct channel *, u32);
void dc_transmitter_onoff(struct channel *, u32);
void dc_set_loopback(struct channel *, u32);
u32 dc_init_descriptor_list(struct channel *);
void dc_clear_descriptor_list(struct channel *);
void dc_drop_descriptor_list(struct channel *);
void dc_set_output_port(struct channel *);
Expand Down
10 changes: 6 additions & 4 deletions trunk/drivers/staging/sbe-2t3e3/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include "2t3e3.h"
#include "ctrl.h"

static int dc_init_descriptor_list(struct channel *sc);

void dc_init(struct channel *sc)
{
u32 val;
Expand Down Expand Up @@ -307,7 +309,7 @@ void dc_set_loopback(struct channel *sc, u32 mode)
SBE_2T3E3_21143_VAL_FULL_DUPLEX_MODE);
}

u32 dc_init_descriptor_list(struct channel *sc)
static int dc_init_descriptor_list(struct channel *sc)
{
u32 i, j;
struct sk_buff *m;
Expand All @@ -317,7 +319,7 @@ u32 dc_init_descriptor_list(struct channel *sc)
sizeof(t3e3_rx_desc_t), GFP_KERNEL);
if (sc->ether.rx_ring == NULL) {
dev_err(&sc->pdev->dev, "SBE 2T3E3: no buffer space for RX ring\n");
return ENOMEM;
return -ENOMEM;
}

if (sc->ether.tx_ring == NULL)
Expand All @@ -327,7 +329,7 @@ u32 dc_init_descriptor_list(struct channel *sc)
kfree(sc->ether.rx_ring);
sc->ether.rx_ring = NULL;
dev_err(&sc->pdev->dev, "SBE 2T3E3: no buffer space for RX ring\n");
return ENOMEM;
return -ENOMEM;
}


Expand All @@ -351,7 +353,7 @@ u32 dc_init_descriptor_list(struct channel *sc)
sc->ether.tx_ring = NULL;
dev_err(&sc->pdev->dev, "SBE 2T3E3: token_alloc err:"
" no buffer space for RX ring\n");
return ENOBUFS;
return -ENOBUFS;
}
sc->ether.rx_data[i] = m;
}
Expand Down

0 comments on commit db892bd

Please sign in to comment.