diff options
author | chas williams - CONTRACTOR <chas@cmf.nrl.navy.mil> | 2011-11-22 07:51:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-26 16:40:30 -0500 |
commit | 49f5ed4250c757cb19d953fcac2737a35ca14d76 (patch) | |
tree | 065c6a559b1b8b0a81f62f100804694a05659484 /net/atm/atm_misc.c | |
parent | 021ac8d387594bdf51d9a279b2f9e9defb614c9b (diff) |
atm: eliminate atm_guess_pdu2truesize()
Signed-off-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/atm_misc.c')
-rw-r--r-- | net/atm/atm_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/atm_misc.c b/net/atm/atm_misc.c index f41f02656ff4..876fbe83e2e4 100644 --- a/net/atm/atm_misc.c +++ b/net/atm/atm_misc.c | |||
@@ -26,7 +26,7 @@ struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc, int pdu_size, | |||
26 | gfp_t gfp_flags) | 26 | gfp_t gfp_flags) |
27 | { | 27 | { |
28 | struct sock *sk = sk_atm(vcc); | 28 | struct sock *sk = sk_atm(vcc); |
29 | int guess = atm_guess_pdu2truesize(pdu_size); | 29 | int guess = SKB_TRUESIZE(pdu_size); |
30 | 30 | ||
31 | atm_force_charge(vcc, guess); | 31 | atm_force_charge(vcc, guess); |
32 | if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) { | 32 | if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) { |