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

Commit 0d81a84b authored by Ayaz Ahmad's avatar Ayaz Ahmad
Browse files

radio: iris: Prevent loss of data



Down casting a variable may lead to loss
of data, other various kind of subtle errors.

Change-Id: If1f8a8c463333a5283c5ba66f099e33d66dc21e4
CRs-Fixed: 569313
Signed-off-by: default avatarAyaz Ahmad <aahmad@codeaurora.org>
parent 1acf35fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1144,7 +1144,7 @@ static int hci_fm_get_ch_det_th(struct radio_hci_dev *hdev,
	return radio_hci_send_cmd(hdev, opcode, 0, NULL);
}

static int radio_hci_err(__u16 code)
static int radio_hci_err(__u32 code)
{
	switch (code) {
	case 0: