git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
net
/
irda
/
ircomm
/
ircomm_core.c
diff --git
a/net/irda/ircomm/ircomm_core.c
b/net/irda/ircomm/ircomm_core.c
index
2868819
..
ad6b6af
100644
(file)
--- a/
net/irda/ircomm/ircomm_core.c
+++ b/
net/irda/ircomm/ircomm_core.c
@@
-29,7
+29,6
@@
*
********************************************************************/
*
********************************************************************/
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/proc_fs.h>
@@
-116,12
+115,10
@@
struct ircomm_cb *ircomm_open(notify_t *notify, __u8 service_type, int line)
IRDA_ASSERT(ircomm != NULL, return NULL;);
IRDA_ASSERT(ircomm != NULL, return NULL;);
- self = k
m
alloc(sizeof(struct ircomm_cb), GFP_ATOMIC);
+ self = k
z
alloc(sizeof(struct ircomm_cb), GFP_ATOMIC);
if (self == NULL)
return NULL;
if (self == NULL)
return NULL;
- memset(self, 0, sizeof(struct ircomm_cb));
-
self->notify = *notify;
self->magic = IRCOMM_MAGIC;
self->notify = *notify;
self->magic = IRCOMM_MAGIC;