mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 00:49:00 +07:00
[media] dvbdev: replace kcalloc with kzalloc
Since the number of elements equals to 1, so just use kzalloc to simplify the code and make it more readable. Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
eac287adb3
commit
5c3fbc5e03
@ -620,8 +620,7 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
adap->conn = conn;
|
adap->conn = conn;
|
||||||
|
|
||||||
adap->conn_pads = kcalloc(1, sizeof(*adap->conn_pads),
|
adap->conn_pads = kzalloc(sizeof(*adap->conn_pads), GFP_KERNEL);
|
||||||
GFP_KERNEL);
|
|
||||||
if (!adap->conn_pads)
|
if (!adap->conn_pads)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user