Loading net/sctp/objcnt.c +2 −3 Original line number Diff line number Diff line Loading @@ -132,12 +132,11 @@ void sctp_dbg_objcnt_init(void) { struct proc_dir_entry *ent; ent = create_proc_entry("sctp_dbg_objcnt", 0, proc_net_sctp); ent = proc_create("sctp_dbg_objcnt", 0, proc_net_sctp, &sctp_objcnt_ops); if (!ent) printk(KERN_WARNING "sctp_dbg_objcnt: Unable to create /proc entry.\n"); else ent->proc_fops = &sctp_objcnt_ops; } /* Cleanup the objcount entry in the proc filesystem. */ Loading net/sctp/proc.c +1 −3 Original line number Diff line number Diff line Loading @@ -108,12 +108,10 @@ int __init sctp_snmp_proc_init(void) { struct proc_dir_entry *p; p = create_proc_entry("snmp", S_IRUGO, proc_net_sctp); p = proc_create("snmp", S_IRUGO, proc_net_sctp, &sctp_snmp_seq_fops); if (!p) return -ENOMEM; p->proc_fops = &sctp_snmp_seq_fops; return 0; } Loading Loading
net/sctp/objcnt.c +2 −3 Original line number Diff line number Diff line Loading @@ -132,12 +132,11 @@ void sctp_dbg_objcnt_init(void) { struct proc_dir_entry *ent; ent = create_proc_entry("sctp_dbg_objcnt", 0, proc_net_sctp); ent = proc_create("sctp_dbg_objcnt", 0, proc_net_sctp, &sctp_objcnt_ops); if (!ent) printk(KERN_WARNING "sctp_dbg_objcnt: Unable to create /proc entry.\n"); else ent->proc_fops = &sctp_objcnt_ops; } /* Cleanup the objcount entry in the proc filesystem. */ Loading
net/sctp/proc.c +1 −3 Original line number Diff line number Diff line Loading @@ -108,12 +108,10 @@ int __init sctp_snmp_proc_init(void) { struct proc_dir_entry *p; p = create_proc_entry("snmp", S_IRUGO, proc_net_sctp); p = proc_create("snmp", S_IRUGO, proc_net_sctp, &sctp_snmp_seq_fops); if (!p) return -ENOMEM; p->proc_fops = &sctp_snmp_seq_fops; return 0; } Loading