diff options
author | Kim Lilliestierna XX <kim.xx.lilliestierna@stericsson.com> | 2012-06-25 03:49:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-25 19:44:11 -0400 |
commit | be4852c957b7c1e8eeac8d13c3ef228508c0873a (patch) | |
tree | 7af9417e84e4f3eafa653d5bbd9b613d81f1462f /net/caif/caif_dev.c | |
parent | e71094f989a48ba776ec117958481682c232ba0b (diff) |
caif: Remove unused pointer and code
Removed surplus call to caif_device_list() in caif_dev.c
Signed-off-by: Kim Lilliestierna <kim.xx.lilliestierna@stericsson.com>
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/caif_dev.c')
-rw-r--r-- | net/caif/caif_dev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index 554b31289607..e601da7ca2ff 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
@@ -90,11 +90,8 @@ static int caifd_refcnt_read(struct caif_device_entry *e) | |||
90 | /* Allocate new CAIF device. */ | 90 | /* Allocate new CAIF device. */ |
91 | static struct caif_device_entry *caif_device_alloc(struct net_device *dev) | 91 | static struct caif_device_entry *caif_device_alloc(struct net_device *dev) |
92 | { | 92 | { |
93 | struct caif_device_entry_list *caifdevs; | ||
94 | struct caif_device_entry *caifd; | 93 | struct caif_device_entry *caifd; |
95 | 94 | ||
96 | caifdevs = caif_device_list(dev_net(dev)); | ||
97 | |||
98 | caifd = kzalloc(sizeof(*caifd), GFP_KERNEL); | 95 | caifd = kzalloc(sizeof(*caifd), GFP_KERNEL); |
99 | if (!caifd) | 96 | if (!caifd) |
100 | return NULL; | 97 | return NULL; |