mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
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>
This commit is contained in:
parent
e71094f989
commit
be4852c957
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user