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


Groups > linux.kernel > #1733531

[PATCH 4/8] [media] cx231xx: Delete an unnecessary variable initialisation in dvb_init()

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject [PATCH 4/8] [media] cx231xx: Delete an unnecessary variable initialisation in dvb_init()
Date 2017-09-17 22:30 +0200
Message-ID <uqOmt-4zB-7@gated-at.bofh.it> (permalink)
References <uqOcN-4tM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sun, 17 Sep 2017 18:53:16 +0200

The variable "result" 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/usb/cx231xx/cx231xx-dvb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/cx231xx/cx231xx-dvb.c b/drivers/media/usb/cx231xx/cx231xx-dvb.c
index 35d98ec948b2..091ec0cf56a6 100644
--- a/drivers/media/usb/cx231xx/cx231xx-dvb.c
+++ b/drivers/media/usb/cx231xx/cx231xx-dvb.c
@@ -601,6 +601,6 @@ static void unregister_dvb(struct cx231xx_dvb *dvb)
 
 static int dvb_init(struct cx231xx *dev)
 {
-	int result = 0;
+	int result;
 	struct cx231xx_dvb *dvb;
 	struct i2c_adapter *tuner_i2c;
-- 
2.14.1

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/8] [media] Cx231xx: Adjustments for several function  implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:20 +0200
  [PATCH 3/8] [media] cx231xx: Improve six size determinations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:20 +0200
  [PATCH 2/8] [media] cx231xx: Adjust 56 checks for null pointers SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:20 +0200
  [PATCH 1/8] [media] cx231xx: Delete eight error messages for a failed  memory allocation SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:20 +0200
  [PATCH 5/8] [media] cx231xx: Use common error handling code in  dvb_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:30 +0200
  [PATCH 4/8] [media] cx231xx: Delete an unnecessary variable  initialisation in dvb_init() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:30 +0200
  [PATCH 7/8] [media] cx231xx: Delete an unnecessary variable  initialisation in read_eeprom() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:30 +0200
  [PATCH 8/8] [media] cx231xx: Use common error handling code in  cx231xx_load_firmware() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:30 +0200
  [PATCH 6/8] [media] cx231xx: Use common error handling code in  read_eeprom() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-09-17 22:30 +0200

csiph-web