From patchwork Sat Sep 2 20:47:04 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: 9935833 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 9AC5F603F3 for ; Sat, 2 Sep 2017 20:47:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BEC12868B for ; Sat, 2 Sep 2017 20:47:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80B3C28692; Sat, 2 Sep 2017 20:47:28 +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 3E5E12868F for ; Sat, 2 Sep 2017 20:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796AbdIBUrL (ORCPT ); Sat, 2 Sep 2017 16:47:11 -0400 Received: from mout.web.de ([212.227.17.12]:63213 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751192AbdIBUrK (ORCPT ); Sat, 2 Sep 2017 16:47:10 -0400 Received: from [192.168.1.2] ([78.48.84.48]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MYNrh-1e1G0W3HU1-00V9E8; Sat, 02 Sep 2017 22:47:06 +0200 Subject: [PATCH 7/7] [media] Mantis: Delete an unnecessary variable initialisation in mantis_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: Date: Sat, 2 Sep 2017 22:47:04 +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:9oSeIrcHWgL7Y7B5rd9BZ7nNLSikYOBK3nUcTFR4ZtqDen5mVdc QYf+NCLz//jHNiKWC9wIdscOptWynMgyDeTgV/FNcX4g1sCM+iANewm0Aoa1a2WGMBmPPas +0LDHc9C739QklaQFaiYC1NEx/9LUaU/Cn3sFxbg/TuaMkm29I6al5k35iwTp8swUfcE7b9 9k135Bg2agE3AavhgXnjw== X-UI-Out-Filterresults: notjunk:1; V01:K0:3wLGvR9nd8g=:DxxIdgjqWp0K2pdis33eOS ivXBOl3NJPcwYWzM6c17QcmBCMctw7XOX+ixVSzOs1H7GXslnRJEDp3Mip1IlC+GfW4pPe9xx OlQRBZ9PsoDXI6s2MY8hMbIyUrFwyvyRGVQc00arNq3yeeEMpARAnk41i/qQ0i/ECwsrQEx2+ 7w8S20DL+qgL9zsQeVwpjkv5rizFEfleTYWL4Z4RNlGvoilpugChk5JWzelU2TvPGp+SMycU4 kO4P6T3o6Q+mGwNNJTCERA51OBwIIl224mi8QqOA+MTV0OqrvQBDSGyyOKE5LwC5tHQ5U0APx 0ajPIHAfAXj6xplKhjgeGKaPVKcV9olDNr2raPEkifJWxCPWX4dFTGrHO6fDKidVeEY3pH2s0 evvEQBsD9PXmMRQWTRH+ewj9sJS0hRS8sCoAdwoCDy4A51JYwEFLmgwUb6gR2F+6e4eNo9mYj P4XJ5aT3jrSxCQjttZYZVOhMj5MzkesGfRTePGviok9knrZmmkWYle7J8WIXDK3TIPn86dQjl bWHxvYI9Ktv1Ux9qz127iLvb/uhWJetvCedtUq/X4JyG31pkDpHLUWiYiHYzSc/+sLX9QiYmt ALGOuGzmAs++Gomv+bRMH7FWF9ILjF6bUqEvGcWRnsoW4lwjffndjJKztEhgQs0fZ0NgEcyLe fcqjv048h/qcBPpw/p+OidEuHLegmfTCwNlfCJDl9uK461gJEUsB31VAriZhpGG2zAnECmneg 7mGUNOPH3Nom2pvdYhB1sGUXtt5BlAvbaRxqde2u21YyHdubSGiNPZjnrkDQ/syZO0HSWkVx9 zAKAfslfsoGlLAC0VaxISnQoCR53xqPn/69vVEYZF2floqxq8M= 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 22:05:22 +0200 The variable "err" will eventually 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/mantis_cards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/mantis/mantis_cards.c b/drivers/media/pci/mantis/mantis_cards.c index 6182ae44dd23..33dd99da0ed8 100644 --- a/drivers/media/pci/mantis/mantis_cards.c +++ b/drivers/media/pci/mantis/mantis_cards.c @@ -171,6 +171,6 @@ static int mantis_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);