diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2005-10-04 22:38:44 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-10-04 22:38:44 -0700 |
commit | 7b5b3f3d826ea87c224c66de9c95c09e7f110ecd (patch) | |
tree | 0d4e34cd3ca10a844c8c8f10ac060b2b142c5445 /net/atm | |
parent | a5181ab06ddca8071b4eb54ac2c314f7d24825d4 (diff) | |
download | linux-7b5b3f3d826ea87c224c66de9c95c09e7f110ecd.tar.bz2 |
[ATM]: fix sparse gfp nocast warnings
Fix implicit nocast warnings in atm code:
net/atm/atm_misc.c:35:44: warning: implicit cast to nocast type
drivers/atm/fore200e.c:183:33: warning: implicit cast to nocast type
Also use kzalloc() instead of kmalloc().
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-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 b2113c3454ae..71abc99ec815 100644 --- a/net/atm/atm_misc.c +++ b/net/atm/atm_misc.c @@ -25,7 +25,7 @@ int atm_charge(struct atm_vcc *vcc,int truesize) struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size, - int gfp_flags) + unsigned int __nocast gfp_flags) { struct sock *sk = sk_atm(vcc); int guess = atm_guess_pdu2truesize(pdu_size); |