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

Staging: gdm72xx: remove duplicate condition

We know "len" is not zero because we tested for that at the beginning of
the function so this test can be removed.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e0aa762c
...@@ -661,9 +661,8 @@ static void gdm_wimax_transmit_pkt(struct net_device *dev, char *buf, int len) ...@@ -661,9 +661,8 @@ static void gdm_wimax_transmit_pkt(struct net_device *dev, char *buf, int len)
cmd_len = be16_to_cpup((const __be16 *)&buf[2]); cmd_len = be16_to_cpup((const __be16 *)&buf[2]);
if (len < cmd_len + HCI_HEADER_SIZE) { if (len < cmd_len + HCI_HEADER_SIZE) {
if (len) netdev_err(dev, "%s: invalid length [%d/%d]\n",
netdev_err(dev, "%s: invalid length [%d/%d]\n", __func__, cmd_len + HCI_HEADER_SIZE, len);
__func__, cmd_len + HCI_HEADER_SIZE, len);
return; return;
} }
......
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