net-rsi: Reconsider usage of variable "vap_id" in rsi_send_mgmt_pkt()
From: SF Markus Elfring
Date: Sat Jan 02 2016 - 10:12:40 EST
Hello,
I have taken another look at the implementation of the function "rsi_send_mgmt_pkt".
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/tree/drivers/net/wireless/rsi/rsi_91x_pkt.c?id=e8c58e7a5a106c3d557fccd01cd4d1128f9bab38#n114
I find the following statement combination interesting there.
â
u8 vap_id = 0;
â
msg[7] |= cpu_to_le16(vap_id << 8);
â
I would appreciate a further clarification.
Does a shift operation for a variable which contains zero indicate an open issue?
Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/