Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit df47512d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Mauro Carvalho Chehab
Browse files

[media] netup_unidvb: Remove a useless memset



This memory is allocated using kzalloc so there is no need to call
memset(..., 0, ...)

[mchehab@osg.samsung.com: as suggested by Joe Perches,
 It's unusual to not see the alloc above the if, removed a
 blank line between kzalloc/if and added a blank line after if]
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 41ff9142
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -771,10 +771,9 @@ static int netup_unidvb_initdev(struct pci_dev *pci_dev,

	/* allocate device context */
	ndev = kzalloc(sizeof(*ndev), GFP_KERNEL);

	if (!ndev)
		goto dev_alloc_err;
	memset(ndev, 0, sizeof(*ndev));

	ndev->old_fw = old_firmware;
	ndev->wq = create_singlethread_workqueue(NETUP_UNIDVB_NAME);
	if (!ndev->wq) {