summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core/dvbdev.c
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2016-01-15 08:14:58 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 15:25:16 +0300
commit5c3fbc5e033ae2e089883c7294304a9a5bf404b2 (patch)
treed921126e76838e56704b5bb238a3eb2e1561ee69 /drivers/media/dvb-core/dvbdev.c
parenteac287adb305820661f528e35a50bd54d7c515f1 (diff)
downloadlinux-5c3fbc5e033ae2e089883c7294304a9a5bf404b2.tar.xz
[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>
Diffstat (limited to 'drivers/media/dvb-core/dvbdev.c')
-rw-r--r--drivers/media/dvb-core/dvbdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/dvb-core/dvbdev.c b/drivers/media/dvb-core/dvbdev.c
index a48421e96b5e..9fd687a1f593 100644
--- a/drivers/media/dvb-core/dvbdev.c
+++ b/drivers/media/dvb-core/dvbdev.c
@@ -620,8 +620,7 @@ int dvb_create_media_graph(struct dvb_adapter *adap,
return -ENOMEM;
adap->conn = conn;
- adap->conn_pads = kcalloc(1, sizeof(*adap->conn_pads),
- GFP_KERNEL);
+ adap->conn_pads = kzalloc(sizeof(*adap->conn_pads), GFP_KERNEL);
if (!adap->conn_pads)
return -ENOMEM;