diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-01-10 08:20:16 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-02-01 12:45:31 +0100 |
commit | df47512d59c0db59a6785f0208001a4b7dd90aaf (patch) | |
tree | 954cf78f976e8d9a1b026ec31358fa3f6f43f912 /drivers/media/pci | |
parent | [media] ts2020: cancel_delayed_work_sync before device removal / kfree (diff) | |
download | linux-df47512d59c0db59a6785f0208001a4b7dd90aaf.tar.xz linux-df47512d59c0db59a6785f0208001a4b7dd90aaf.zip |
[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: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
-rw-r--r-- | drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c index 525ebfefeee8..c94cecd2aa40 100644 --- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c +++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c @@ -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) { |