mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e0aa762cac
commit
a7df59ece7
1 changed files with 2 additions and 3 deletions
|
|
@ -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]);
|
||||
|
||||
if (len < cmd_len + HCI_HEADER_SIZE) {
|
||||
if (len)
|
||||
netdev_err(dev, "%s: invalid length [%d/%d]\n",
|
||||
__func__, cmd_len + HCI_HEADER_SIZE, len);
|
||||
netdev_err(dev, "%s: invalid length [%d/%d]\n",
|
||||
__func__, cmd_len + HCI_HEADER_SIZE, len);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue