mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
staging: r8188eu: remove unnecessary casting
The dhcpMessage struct member variable "cookie" is already declared to be of type __be32. There is no need to cast it again as __be32. Signed-off-by: Deepak R Varma <drv@mailo.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150 Link: https://lore.kernel.org/r/c333e22349c5c347c740b425330b35830b969fa9.1667755987.git.drv@mailo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c1a84fe1f4
commit
a57ef65a09
1 changed files with 1 additions and 1 deletions
|
@ -615,7 +615,7 @@ void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb)
|
|||
if ((udph->source == htons(CLIENT_PORT)) &&
|
||||
(udph->dest == htons(SERVER_PORT))) { /* DHCP request */
|
||||
struct dhcpMessage *dhcph = (void *)udph + sizeof(struct udphdr);
|
||||
u32 cookie = be32_to_cpu((__be32)dhcph->cookie);
|
||||
u32 cookie = be32_to_cpu(dhcph->cookie);
|
||||
|
||||
if (cookie == DHCP_MAGIC) { /* match magic word */
|
||||
if (!(dhcph->flags & htons(BROADCAST_FLAG))) {
|
||||
|
|
Loading…
Reference in a new issue