From patchwork Sat Sep 2 20:44:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9935821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1AB3560390 for ; Sat, 2 Sep 2017 20:45:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0DD2C2868C for ; Sat, 2 Sep 2017 20:45:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02E442868F; Sat, 2 Sep 2017 20:45:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E01A28687 for ; Sat, 2 Sep 2017 20:45:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752767AbdIBUoJ (ORCPT ); Sat, 2 Sep 2017 16:44:09 -0400 Received: from mout.web.de ([212.227.17.12]:50034 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbdIBUoI (ORCPT ); Sat, 2 Sep 2017 16:44:08 -0400 Received: from [192.168.1.2] ([78.48.84.48]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MOzoR-1dsuV114XH-006RwQ; Sat, 02 Sep 2017 22:44:04 +0200 Subject: [PATCH 4/7] [media] Hopper: Delete an unnecessary variable initialisation in hopper_pci_probe() From: SF Markus Elfring To: linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org References: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> Message-ID: <34198288-20f0-0ee1-572f-2eb3d7892299@users.sourceforge.net> Date: Sat, 2 Sep 2017 22:44:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> Content-Language: en-GB X-Provags-ID: V03:K0:Cvr/HvfttHk+J2qnjdWjvska87VeugkpxjIHnsSh3TUp8DxuOgO KKVBVebLEvUBBiPxmgTFdHqpcITm7cnZ4Ocy36xGZmh6oVUyM/6wxQXwj9bQXztNpZ9L5Mr hcRptCBf3hlCyEPDvD+2E0Yzta3ZgzqNsJVqzkPEpwBILpd9+2kaeFZ8ix48CMlW+MRiyHX ZlPNOTNyLAdLvP6EuqAuQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:t0863gw8jv4=:P/eWuO6jjlCN4VECFk0ceK 2yTg+JdECZTtZ4z0VK9i+WfDPdrpOR9/Q+vQ7gP00K2GxU+66dOiipRiaZp0I2xVgk27bS7iF O+zXx7bhV1nnFbT9T33sGYDckRI+qa3QpLwwoUGb0pruXrssG5tSLWISSyybW1eiKSN9jbCIV ndz0IM1wwIEPTC6bPysNu1p6ew4JcS+X7qsnb9yBC7AiKbhez4EcZ86iHCNo/6cOcl4hCAiyS L5xgemqc05jJTI1fo5B3CZ1HdZup8SVspIJkOhWjihF9Jc4tQXz7B4seaQ8NL2TWDp+OIJx6V Lp1G++zngzUwyN/momhpCU7/vdvzm+YqC5qM1BN70shPgBqGvrDgQ+4s8MBxbkbcpkrSPyBvp +hxd+iBn9IgR1aTbxdsUvF/Koe/MxjufPLNJLLv+Tohvz48DUSfgJOq+i0Xv7i8aQj8C2xZ1a el9YNFBmBz+BuwH3N4b1p1rTPwXYxzIdJxLb2il0PKytZWOFwh0oMhlmKYOl0A9r/GYjTj0cf eO0yadWiDqDW9AMDHWHbFWkLmBOv8CkyexbVkNUCYP5zeq9pQJ+OE0x8KllYnEsihVGy487f+ cR53Yww6HBpja1dDkhkfRhNnY2LREQy8XzMi/Wn7dzop0QoFHnsruONnki1Vi1MEnwMQ/JTxJ w5cSoBDmw8teAi7rN+k7wqUlaRm6Ysms/YEM/BgwjNMGweSOlYWhVxcu2jHw6OTdoXlYgsrRx 6/5BzV36AmCJi/wRYQnmUYnwf0+iouQps72tb719SfOWn5U2U077VjdB9t5FOf9R8qFpSGa07 QdhOwZ+bCikZbdULYadHs8olINY7Xo5cP6nn88uU7J9gD2V5iA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 2 Sep 2017 21:50:55 +0200 The variable "err" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/pci/mantis/hopper_cards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/mantis/hopper_cards.c b/drivers/media/pci/mantis/hopper_cards.c index 88e5b2a97005..3826be19c156 100644 --- a/drivers/media/pci/mantis/hopper_cards.c +++ b/drivers/media/pci/mantis/hopper_cards.c @@ -161,6 +161,6 @@ static int hopper_pci_probe(struct pci_dev *pdev, struct mantis_pci_drvdata *drvdata; struct mantis_pci *mantis; struct mantis_hwconfig *config; - int err = 0; + int err; mantis = kzalloc(sizeof(*mantis), GFP_KERNEL);