Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1725577 > unrolled thread

[PATCH 7/7] [media] Mantis: Delete an unnecessary variable initialisation in mantis_pci_probe()

Started bySF Markus Elfring <elfring@users.sourceforge.net>
First post2017-09-02 22:50 +0200
Last post2017-09-02 22:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 7/7] [media] Mantis: Delete an unnecessary variable  initialisation in mantis_pci_probe() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-02 22:50 +0200

#1725577 — [PATCH 7/7] [media] Mantis: Delete an unnecessary variable initialisation in mantis_pci_probe()

FromSF Markus Elfring <elfring@users.sourceforge.net>
Date2017-09-02 22:50 +0200
Subject[PATCH 7/7] [media] Mantis: Delete an unnecessary variable initialisation in mantis_pci_probe()
Message-ID<ulnwC-7AM-9@gated-at.bofh.it>
From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 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);
-- 
2.14.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web