stagigg: wfx: replace magic number by HIF_ID_IS_INDICATION
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Thu, 13 Jan 2022 08:55:03 +0000 (09:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:19:41 +0000 (16:19 +0100)
Magic values are not recommended.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20220113085524.1110708-11-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_rx.c

index 6963b54d55934e9266875e6189f425f4b9203f8c..5e675d2c3e8245618dc0f0bbe5fb30b55fad5cce 100644 (file)
@@ -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