staging: gdmwm: move variables to right side of comparison test
authorAlison Schofield <amsfield22@gmail.com>
Mon, 12 Oct 2015 20:53:22 +0000 (13:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:55:00 +0000 (20:55 -0700)
Move variables to right side of comparison test to improve readability.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_wimax.c

index 6e8dbaf354459920a8230eacf9ac356de8078b80..69f00cc49bad38e88f5ee9c263bab05963687e6a 100644 (file)
@@ -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);