From: Kim Lilliestierna XX Date: Mon, 25 Jun 2012 07:49:33 +0000 (+0000) Subject: caif: Remove unused pointer and code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be4852c957b7c1e8eeac8d13c3ef228508c0873a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git caif: Remove unused pointer and code Removed surplus call to caif_device_list() in caif_dev.c Signed-off-by: Kim Lilliestierna Signed-off-by: Sjur Brændeland Signed-off-by: David S. Miller --- 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) /* Allocate new CAIF device. */ static struct caif_device_entry *caif_device_alloc(struct net_device *dev) { - struct caif_device_entry_list *caifdevs; struct caif_device_entry *caifd; - caifdevs = caif_device_list(dev_net(dev)); - caifd = kzalloc(sizeof(*caifd), GFP_KERNEL); if (!caifd) return NULL;