aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ackvec.c
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2006-11-20 15:39:23 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:24:38 -0500
commit59348b19efebfd6a8d0791ff81d207b16594c94b (patch)
treea9212a7bf62bd594cf02d23b9e33eb45a46d414d /net/dccp/ackvec.c
parentb1308dc015eb09cf094ca169296738a13ae049ad (diff)
[DCCP]: Simplified conditions due to use of enum:8 states
This reaps the benefit of the earlier patch, which changed the type of CCID 3 states to use enums, in that many conditions are now simplified and the number of possible (unexpected) values is greatly reduced. In a few instances, this also allowed to simplify pre-conditions; where care has been taken to retain logical equivalence. [DCCP]: Introduce a consistent BUG/WARN message scheme This refines the existing set of DCCP messages so that * BUG(), BUG_ON(), WARN_ON() have meaningful DCCP-specific counterparts * DCCP_CRIT (for severe warnings) is not rate-limited * DCCP_WARN() is introduced as rate-limited wrapper Using these allows a faster and cleaner transition to their original counterparts once the code has matured into a full DCCP implementation. Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Diffstat (limited to 'net/dccp/ackvec.c')
-rw-r--r--net/dccp/ackvec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/dccp/ackvec.c b/net/dccp/ackvec.c
index d34badcd012e..1b4b60d8bdec 100644
--- a/net/dccp/ackvec.c
+++ b/net/dccp/ackvec.c
@@ -461,9 +461,6 @@ int dccp_ackvec_parse(struct sock *sk, const struct sk_buff *skb,
461 return 0; 461 return 0;
462} 462}
463 463
464static char dccp_ackvec_slab_msg[] __initdata =
465 KERN_CRIT "DCCP: Unable to create ack vectors slab caches\n";
466
467int __init dccp_ackvec_init(void) 464int __init dccp_ackvec_init(void)
468{ 465{
469 dccp_ackvec_slab = kmem_cache_create("dccp_ackvec", 466 dccp_ackvec_slab = kmem_cache_create("dccp_ackvec",
@@ -485,7 +482,7 @@ out_destroy_slab:
485 kmem_cache_destroy(dccp_ackvec_slab); 482 kmem_cache_destroy(dccp_ackvec_slab);
486 dccp_ackvec_slab = NULL; 483 dccp_ackvec_slab = NULL;
487out_err: 484out_err:
488 printk(dccp_ackvec_slab_msg); 485 DCCP_CRIT("Unable to create Ack Vector slab cache");
489 return -ENOBUFS; 486 return -ENOBUFS;
490} 487}
491 488