diff options
Diffstat (limited to 'net/caif/cfsrvl.c')
-rw-r--r-- | net/caif/cfsrvl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/caif/cfsrvl.c b/net/caif/cfsrvl.c index ab5e542526bf..24ba392f203b 100644 --- a/net/caif/cfsrvl.c +++ b/net/caif/cfsrvl.c | |||
@@ -151,12 +151,7 @@ static int cfservl_modemcmd(struct cflayer *layr, enum caif_modemcmd ctrl) | |||
151 | return -EINVAL; | 151 | return -EINVAL; |
152 | } | 152 | } |
153 | 153 | ||
154 | void cfservl_destroy(struct cflayer *layer) | 154 | static void cfsrvl_release(struct kref *kref) |
155 | { | ||
156 | kfree(layer); | ||
157 | } | ||
158 | |||
159 | void cfsrvl_release(struct kref *kref) | ||
160 | { | 155 | { |
161 | struct cfsrvl *service = container_of(kref, struct cfsrvl, ref); | 156 | struct cfsrvl *service = container_of(kref, struct cfsrvl, ref); |
162 | kfree(service); | 157 | kfree(service); |