Commit 64ff4044 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

Staging: rt2860: clean up & => &&

a4_exists is an integer used as a boolean type so the original code
works.  But all the other conditions use && and this makes it
consistent.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ed57d08b
...@@ -281,7 +281,7 @@ void construct_mic_header2(unsigned char *mic_header2, ...@@ -281,7 +281,7 @@ void construct_mic_header2(unsigned char *mic_header2,
mic_header2[6] = mpdu[22] & 0x0f; /* SC */ mic_header2[6] = mpdu[22] & 0x0f; /* SC */
mic_header2[7] = 0x00; /* mpdu[23]; */ mic_header2[7] = 0x00; /* mpdu[23]; */
if ((!qc_exists) & a4_exists) { if ((!qc_exists) && a4_exists) {
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
mic_header2[8 + i] = mpdu[24 + i]; /* A4 */ mic_header2[8 + i] = mpdu[24 + i]; /* A4 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment