Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0f36ebf authored by Rickard Strandqvist's avatar Rickard Strandqvist Committed by John W. Linville
Browse files

net: wireless: libertas: cmd.c: Cleaning up uninitialized variables



There is a risk that the variable will be used without being initialized.

This was largely found by using a static code analysis program called cppcheck.

Signed-off-by: default avatarRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 427fa00b
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1111,6 +1111,7 @@ int lbs_set_radio(struct lbs_private *priv, u8 preamble, u8 radio_on)


	cmd.hdr.size = cpu_to_le16(sizeof(cmd));
	cmd.hdr.size = cpu_to_le16(sizeof(cmd));
	cmd.action = cpu_to_le16(CMD_ACT_SET);
	cmd.action = cpu_to_le16(CMD_ACT_SET);
	cmd.control = 0;


	/* Only v8 and below support setting the preamble */
	/* Only v8 and below support setting the preamble */
	if (priv->fwrelease < 0x09000000) {
	if (priv->fwrelease < 0x09000000) {