mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] staging: wilc1000: host_interface.c: Fix build warning
@ 2015-07-29 14:06 Chandra S Gorentla
  2015-07-29 14:20 ` Dan Carpenter
  2015-07-29 21:12 ` Greg KH
  0 siblings, 2 replies; 4+ messages in thread
From: Chandra S Gorentla @ 2015-07-29 14:06 UTC (permalink / raw)
  To: johnny.kim, rachel.kim, dean.lee, chris.park, gregkh
  Cc: linux-wireless, devel, linux-kernel, Chandra S Gorentla

Fixed - warning: ‘*((void *)&strHostIFmsg+4).pu8Head’ may be used uninitialized 

Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index c089e73..f610903 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -7113,7 +7113,7 @@ s32 host_int_add_beacon(WILC_WFIDrvHandle hWFIDrv, u32 u32Interval,
 {
 	s32 s32Error = WILC_SUCCESS;
 	tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv;
-	tstrHostIFmsg strHostIFmsg;
+	tstrHostIFmsg strHostIFmsg = {};
 	tstrHostIFSetBeacon *pstrSetBeaconParam = &strHostIFmsg.uniHostIFmsgBody.strHostIFSetBeacon;
 
 	if (pstrWFIDrv == NULL)
-- 
2.4.5


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-29 21:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-29 14:06 [PATCH] staging: wilc1000: host_interface.c: Fix build warning Chandra S Gorentla
2015-07-29 14:20 ` Dan Carpenter
2015-07-29 15:22   ` Chandra Gorentla
2015-07-29 21:12 ` Greg KH

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®