diff options
author | Nandha Kumar Singaram <nandhakumar.singaram@gmail.com> | 2023-10-15 06:35:58 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-15 18:21:27 +0200 |
commit | b25c17e5c2497d13857772d411142daa20c70e59 (patch) | |
tree | 6b96df4cf1de2641fead53a813441e1e0d4c9ce1 | |
parent | 4aa8371e4a9b9d77372e8535144da8c5d99aac7d (diff) | |
download | linux-stable-b25c17e5c2497d13857772d411142daa20c70e59.tar.gz linux-stable-b25c17e5c2497d13857772d411142daa20c70e59.tar.bz2 linux-stable-b25c17e5c2497d13857772d411142daa20c70e59.zip |
staging: qlge: Replace the occurrences of (1<<x) by BIT(x)
Adhere to linux coding style. Reported by checkpatch.pl:
CHECK: Prefer using the BIT macro
Signed-off-by: Nandha Kumar Singaram <nandhakumar.singaram@gmail.com>
Link: https://lore.kernel.org/r/20231015133558.GA5489@ubuntu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/qlge/qlge.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/qlge/qlge.h b/drivers/staging/qlge/qlge.h index d0dd659834ee..69c5b332fd7c 100644 --- a/drivers/staging/qlge/qlge.h +++ b/drivers/staging/qlge/qlge.h @@ -1273,7 +1273,7 @@ struct qlge_net_req_iocb { */ struct wqicb { __le16 len; -#define Q_LEN_V (1 << 4) +#define Q_LEN_V BIT(4) #define Q_LEN_CPP_CONT 0x0000 #define Q_LEN_CPP_16 0x0001 #define Q_LEN_CPP_32 0x0002 @@ -1308,7 +1308,7 @@ struct cqicb { #define FLAGS_LI 0x40 #define FLAGS_LC 0x80 __le16 len; -#define LEN_V (1 << 4) +#define LEN_V BIT(4) #define LEN_CPP_CONT 0x0000 #define LEN_CPP_32 0x0001 #define LEN_CPP_64 0x0002 |