mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4.14 ] ALSA: Corrects warning: missing braces around initializer
@ 2020-10-30 15:47 john.p.donnelly
  0 siblings, 0 replies; only message in thread
From: john.p.donnelly @ 2020-10-30 15:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: trix, tiwai

From: John Donnelly <john.p.donnelly@oracle.com>

The assignment statement of a local variable "struct hpi_pci pci = { 0
}; " is not valid for all versions of compiler.

Fixes: 9c3c9d37ae1e ("ALSA: asihpi: fix iounmap in error handler")

Signed-off-by: John Donnelly <john.p.donnelly@oracle.com>
---
 sound/pci/asihpi/hpioctl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c
index b4ccd9f92400..1cd7c197ab96 100644
--- a/sound/pci/asihpi/hpioctl.c
+++ b/sound/pci/asihpi/hpioctl.c
@@ -350,8 +350,9 @@ int asihpi_adapter_probe(struct pci_dev *pci_dev,
 	struct hpi_message hm;
 	struct hpi_response hr;
 	struct hpi_adapter adapter;
-	struct hpi_pci pci = { 0 };
+	struct hpi_pci pci;
 
+	memset(&pci, 0, sizeof(pci));
 	memset(&adapter, 0, sizeof(adapter));
 
 	dev_printk(KERN_DEBUG, &pci_dev->dev,
-- 
2.27.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-30 15:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 15:47 [PATCH 4.14 ] ALSA: Corrects warning: missing braces around initializer john.p.donnelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®