summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorXiubo Li <lixiubo@cmss.chinamobile.com>2016-01-15 03:14:58 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-01 10:25:16 -0200
commit5c3fbc5e033ae2e089883c7294304a9a5bf404b2 (patch)
treed921126e76838e56704b5bb238a3eb2e1561ee69 /drivers
parenteac287adb305820661f528e35a50bd54d7c515f1 (diff)
downloadop-kernel-dev-5c3fbc5e033ae2e089883c7294304a9a5bf404b2.zip
op-kernel-dev-5c3fbc5e033ae2e089883c7294304a9a5bf404b2.tar.gz
[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')
-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 a48421e..9fd687a 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;
OpenPOWER on IntegriCloud