[NET]: Remove unneeded kmalloc() return value casts
Get rid of needless casting of kmalloc() return value in net/ Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ea2e90dfce
commit
12fe2c588d
@@ -403,7 +403,7 @@ int hci_get_conn_list(void __user *arg)
|
||||
|
||||
size = sizeof(req) + req.conn_num * sizeof(*ci);
|
||||
|
||||
if (!(cl = (void *) kmalloc(size, GFP_KERNEL)))
|
||||
if (!(cl = kmalloc(size, GFP_KERNEL)))
|
||||
return -ENOMEM;
|
||||
|
||||
if (!(hdev = hci_dev_get(req.dev_id))) {
|
||||
|
Reference in New Issue
Block a user