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

Commit 7cd4ec55 authored by Vladimir Kondratiev's avatar Vladimir Kondratiev Committed by John W. Linville
Browse files

wil6210: fix warning in pointer arithmetic



In some compilation environments, result of pointer arithmetic interpreted as int
while in others it is long int. Force conversion to long.

Signed-off-by: default avatarVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d3762b40
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -446,7 +446,7 @@ static int wil_fw_load(struct wil6210_priv *wil, const void *data, size_t size)
		if (size >= sizeof(*hdr)) {
		if (size >= sizeof(*hdr)) {
			wil_err_fw(wil, "Stop at offset %ld"
			wil_err_fw(wil, "Stop at offset %ld"
				   " record type %d [%zd bytes]\n",
				   " record type %d [%zd bytes]\n",
				   (const void *)hdr - data,
				   (long)((const void *)hdr - data),
				   le16_to_cpu(hdr->type), hdr_sz);
				   le16_to_cpu(hdr->type), hdr_sz);
		}
		}
		return -EINVAL;
		return -EINVAL;