[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>

authored by

Jesper Juhl and committed by
David S. Miller
12fe2c58 ea2e90df

+3 -3
+1 -1
net/bluetooth/hci_conn.c
··· 403 404 size = sizeof(req) + req.conn_num * sizeof(*ci); 405 406 - if (!(cl = (void *) kmalloc(size, GFP_KERNEL))) 407 return -ENOMEM; 408 409 if (!(hdev = hci_dev_get(req.dev_id))) {
··· 403 404 size = sizeof(req) + req.conn_num * sizeof(*ci); 405 406 + if (!(cl = kmalloc(size, GFP_KERNEL))) 407 return -ENOMEM; 408 409 if (!(hdev = hci_dev_get(req.dev_id))) {
+2 -2
net/sunrpc/svc.c
··· 166 memset(rqstp, 0, sizeof(*rqstp)); 167 init_waitqueue_head(&rqstp->rq_wait); 168 169 - if (!(rqstp->rq_argp = (u32 *) kmalloc(serv->sv_xdrsize, GFP_KERNEL)) 170 - || !(rqstp->rq_resp = (u32 *) kmalloc(serv->sv_xdrsize, GFP_KERNEL)) 171 || !svc_init_buffer(rqstp, serv->sv_bufsz)) 172 goto out_thread; 173
··· 166 memset(rqstp, 0, sizeof(*rqstp)); 167 init_waitqueue_head(&rqstp->rq_wait); 168 169 + if (!(rqstp->rq_argp = kmalloc(serv->sv_xdrsize, GFP_KERNEL)) 170 + || !(rqstp->rq_resp = kmalloc(serv->sv_xdrsize, GFP_KERNEL)) 171 || !svc_init_buffer(rqstp, serv->sv_bufsz)) 172 goto out_thread; 173