From: Jérôme Pouiller Date: Thu, 13 Jan 2022 08:55:03 +0000 (+0100) Subject: stagigg: wfx: replace magic number by HIF_ID_IS_INDICATION X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=357e36e2106769950be404e958279770077c968f;p=linux.git stagigg: wfx: replace magic number by HIF_ID_IS_INDICATION Magic values are not recommended. Signed-off-by: Jérôme Pouiller Link: https://lore.kernel.org/r/20220113085524.1110708-11-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wfx/hif_rx.c b/drivers/staging/wfx/hif_rx.c index 6963b54d55934..5e675d2c3e824 100644 --- a/drivers/staging/wfx/hif_rx.c +++ b/drivers/staging/wfx/hif_rx.c @@ -405,7 +405,7 @@ void wfx_handle_rx(struct wfx_dev *wdev, struct sk_buff *skb) goto free; } } - if (hif_id & 0x80) + if (hif_id & HIF_ID_IS_INDICATION) dev_err(wdev->dev, "unsupported HIF indication: ID %02x\n", hif_id); else