Skip to content

Commit

Permalink
caif: Remove unused pointer and code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Lilliestierna XX authored and davem330 committed Jun 25, 2012
1 parent e71094f commit be4852c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/caif/caif_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit be4852c

Please sign in to comment.