Commit be4852c9 authored by Kim Lilliestierna XX's avatar Kim Lilliestierna XX Committed by David S. Miller

caif: Remove unused pointer and code

Removed surplus call to caif_device_list() in caif_dev.c
Signed-off-by: default avatarKim Lilliestierna <kim.xx.lilliestierna@stericsson.com>
Signed-off-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e71094f9
...@@ -90,11 +90,8 @@ static int caifd_refcnt_read(struct caif_device_entry *e) ...@@ -90,11 +90,8 @@ static int caifd_refcnt_read(struct caif_device_entry *e)
/* Allocate new CAIF device. */ /* Allocate new CAIF device. */
static struct caif_device_entry *caif_device_alloc(struct net_device *dev) static struct caif_device_entry *caif_device_alloc(struct net_device *dev)
{ {
struct caif_device_entry_list *caifdevs;
struct caif_device_entry *caifd; struct caif_device_entry *caifd;
caifdevs = caif_device_list(dev_net(dev));
caifd = kzalloc(sizeof(*caifd), GFP_KERNEL); caifd = kzalloc(sizeof(*caifd), GFP_KERNEL);
if (!caifd) if (!caifd)
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment