aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core
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/media/dvb-core
parent[media] dvbdev: remove useless parentheses after return (diff)
downloadlinux-dev-5c3fbc5e033ae2e089883c7294304a9a5bf404b2.tar.xz
linux-dev-5c3fbc5e033ae2e089883c7294304a9a5bf404b2.zip
[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')
-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;