From: SF Markus Elfring Date: Sat, 02 Sep 2017 20:44:03 +0000 Subject: [PATCH 4/7] [media] Hopper: Delete an unnecessary variable initialisation in hopper_pci_probe() Message-Id: <34198288-20f0-0ee1-572f-2eb3d7892299@users.sourceforge.net> List-Id: References: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> In-Reply-To: <9ba22d42-0ec0-b865-dec5-4ce67ad443fb@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-media@vger.kernel.org, Mauro Carvalho Chehab Cc: LKML , kernel-janitors@vger.kernel.org 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); -- 2.14.1