[PATCH] ALSA: hda - Remove compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove the warning:
warning: ‘err’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Helen Koike <helen.koike@xxxxxxxxxxxxxxx>
---
 sound/hda/hdac_regmap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/hda/hdac_regmap.c b/sound/hda/hdac_regmap.c
index 87041dd..7be6ca1 100644
--- a/sound/hda/hdac_regmap.c
+++ b/sound/hda/hdac_regmap.c
@@ -279,7 +279,7 @@ static int hda_reg_write(void *context, unsigned int reg, unsigned int val)
 {
 	struct hdac_device *codec = context;
 	unsigned int verb;
-	int i, bytes, err;
+	int i, bytes, err = 0;
 	int pm_lock = 0;
 
 	if (codec->caps_overwriting)
-- 
1.9.1

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux