From patchwork Sun Jan 10 07:20:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 7994741 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 43EBCBEEE5 for ; Sun, 10 Jan 2016 07:20:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AEDC202EC for ; Sun, 10 Jan 2016 07:20:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C2907202EB for ; Sun, 10 Jan 2016 07:20:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644AbcAJHUY (ORCPT ); Sun, 10 Jan 2016 02:20:24 -0500 Received: from smtp04.smtpout.orange.fr ([80.12.242.126]:43222 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622AbcAJHUY (ORCPT ); Sun, 10 Jan 2016 02:20:24 -0500 Received: from localhost.localdomain ([92.140.155.152]) by mwinf5d39 with ME id 47LL1s0033HZP0k037LLvV; Sun, 10 Jan 2016 08:20:22 +0100 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 10 Jan 2016 08:20:22 +0100 X-ME-IP: 92.140.155.152 From: Christophe JAILLET To: serjk@netup.ru, mchehab@osg.samsung.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] [media] netup_unidvb: Remove a useless memset Date: Sun, 10 Jan 2016 08:20:16 +0100 Message-Id: <1452410416-6362-1-git-send-email-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.5.0 X-Antivirus: avast! (VPS 160109-1, 09/01/2016), Outbound message X-Antivirus-Status: Clean Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This memory is allocated using kzalloc so there is no need to call memset(..., 0, ...) Signed-off-by: Christophe JAILLET --- drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c index 525ebfe..d919080 100644 --- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c +++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c @@ -774,7 +774,6 @@ static int netup_unidvb_initdev(struct pci_dev *pci_dev, 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) {