From: Alison Schofield Date: Mon, 12 Oct 2015 20:53:22 +0000 (-0700) Subject: staging: gdmwm: move variables to right side of comparison test X-Git-Tag: KARO-TX6UL-2015-11-03~34^2~1006 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0a589f4f1b6505e26dc592e1aba360af5d6f8dc6;p=karo-tx-linux.git staging: gdmwm: move variables to right side of comparison test Move variables to right side of comparison test to improve readability. Signed-off-by: Alison Schofield Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gdm72xx/gdm_wimax.c b/drivers/staging/gdm72xx/gdm_wimax.c index 6e8dbaf35445..69f00cc49bad 100644 --- a/drivers/staging/gdm72xx/gdm_wimax.c +++ b/drivers/staging/gdm72xx/gdm_wimax.c @@ -581,8 +581,8 @@ static int gdm_wimax_get_prepared_info(struct net_device *dev, char *buf, } pos += gdm_wimax_hci_get_tlv(&buf[pos], &T, &L, &V); - if (T == TLV_T(T_MAC_ADDRESS)) { - if (L != dev->addr_len) { + if (TLV_T(T_MAC_ADDRESS) == T) { + if (dev->addr_len != L) { netdev_err(dev, "%s Invalid information result T/L [%x/%d]\n", __func__, T, L);