diff options
Diffstat (limited to 'net/caif/cfrfml.c')
-rw-r--r-- | net/caif/cfrfml.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/caif/cfrfml.c b/net/caif/cfrfml.c index 0deabb440051..81660f809713 100644 --- a/net/caif/cfrfml.c +++ b/net/caif/cfrfml.c | |||
@@ -46,13 +46,10 @@ struct cflayer *cfrfml_create(u8 channel_id, struct dev_info *dev_info, | |||
46 | int mtu_size) | 46 | int mtu_size) |
47 | { | 47 | { |
48 | int tmp; | 48 | int tmp; |
49 | struct cfrfml *this = | 49 | struct cfrfml *this = kzalloc(sizeof(struct cfrfml), GFP_ATOMIC); |
50 | kzalloc(sizeof(struct cfrfml), GFP_ATOMIC); | ||
51 | 50 | ||
52 | if (!this) { | 51 | if (!this) |
53 | pr_warn("Out of memory\n"); | ||
54 | return NULL; | 52 | return NULL; |
55 | } | ||
56 | 53 | ||
57 | cfsrvl_init(&this->serv, channel_id, dev_info, false); | 54 | cfsrvl_init(&this->serv, channel_id, dev_info, false); |
58 | this->serv.release = cfrfml_release; | 55 | this->serv.release = cfrfml_release; |